]> granicus.if.org Git - icinga2/commitdiff
Configuration: Remove 'local' identifier.
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 29 Aug 2013 12:50:27 +0000 (14:50 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 29 Aug 2013 12:51:38 +0000 (14:51 +0200)
contrib/config/gen_simple_dummy_config
contrib/config/mf/icinga2.conf
docs/icinga2-tutorial.adoc
etc/icinga2/icinga2.conf.dist
etc/icinga2/icinga2.conf.win32

index d3d09d0644b9ee0a7df84bf0430bc8e67b275492..91f5bcff12e224e64ab15d9435094a19007c029d 100755 (executable)
@@ -11,19 +11,19 @@ cat >> $CONFFILE << EOF
 include <itl/itl.conf>
 include <itl/standalone.conf>
 
-local object IcingaApplication "icinga" {
+object IcingaApplication "icinga" {
  macros = {
     plugindir = "/usr/lib/nagios/plugins"
   }
 }
 
 library "compat"
-local object CompatComponent "compat" { }
-local object CompatLog "compat-log" { }
+object CompatComponent "compat" { }
+object CompatLog "compat-log" { }
 
 /*
 library "livestatus"
-local object LivestatusComponent "livestatus" {}
+object LivestatusComponent "livestatus" {}
 */
 
 object CheckCommand "check_dummy" inherits "plugin-check-command" {
index a87686cbbf5e594fc60a513f96dd995f74958179..98aa46708ddf5bfe95e317b94ce1e8e5babe1670 100644 (file)
@@ -13,7 +13,7 @@ include <itl/standalone.conf>
 /**
  * Global configuration settings
  */
-local object IcingaApplication "icinga" {
+object IcingaApplication "icinga" {
  macros = {
     plugindir = "/usr/lib/nagios/plugins",
     iconimagedir = "/icinga2/images/icons"
@@ -24,11 +24,11 @@ local object IcingaApplication "icinga" {
  * Enable Syslogger
  */
  /*
-local object SyslogLogger "icinga2-syslog" {
+object SyslogLogger "icinga2-syslog" {
     severity = "information"
 }
 
-local object FileLogger "my-debug-file" {
+object FileLogger "my-debug-file" {
   severity = "debug",
   path = "/home/michi/i2/var/log/icinga2/icinga2-debug.log"
 }
@@ -39,13 +39,13 @@ local object FileLogger "my-debug-file" {
  * hosts and services.
  */
 library "compat"
-local object CompatComponent "compat" { }
-local object CompatLog "compat-log" { }
+object CompatComponent "compat" { }
+object CompatLog "compat-log" { }
 
 /**
  * INGRAPH
  */
-local object PerfdataWriter "pnp" {
+object PerfdataWriter "pnp" {
   perfdata_path = "/data/icinga2/perfdata/service-perfdata",
   format_template = "DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$",
   rotation_interval = 15s,
@@ -56,13 +56,13 @@ local object PerfdataWriter "pnp" {
  */
 library "livestatus"
 
-local object LivestatusComponent "livestatus-tcp" {
+object LivestatusComponent "livestatus-tcp" {
   socket_type = "tcp",
   host = "10.0.10.18",
   port = "6558"
 }
 
-local object LivestatusComponent "livestatus-unix" {
+object LivestatusComponent "livestatus-unix" {
   socket_type = "unix",
   socket_path = "/home/michi/i2/var/run/icinga2/livestatus"
 }
@@ -72,7 +72,7 @@ local object LivestatusComponent "livestatus-unix" {
  */
 library "ido_mysql"
 
-local object MysqlDbConnection "ido-mysql" {
+object MysqlDbConnection "ido-mysql" {
   host = "127.0.0.1",
   port = "3306",
   user = "icinga",
index 7f36610453e2eaaec0cdee3cea0c7be287270ff8..a33ee5d0a27ad4758a960839adc122be0ed21b5f 100644 (file)
@@ -52,7 +52,7 @@ Start by creating the file /etc/icinga2/icinga2.conf with the following content:
 include <itl/itl.conf>
 include <itl/standalone.conf>
 
-local object IcingaApplication "my-icinga" {
+object IcingaApplication "my-icinga" {
        macros["plugindir"] = "/usr/lib/nagios/plugins"
 }
 ----
@@ -202,8 +202,8 @@ to your configuration file:
 ----
 library "compat"
 
-local object CompatComponent "compat" { }
-local object CompatLog "my-log" { }
+object CompatComponent "compat" { }
+object CompatLog "my-log" { }
 ----
 
 After restarting Icinga 2 you should be able to find the status.dat and objects.cache files in
@@ -660,7 +660,7 @@ or your preferred graphite collector.
 Let's create a new PNP PerfdataWriter object:
 
 ----
-local object PerfdataWriter "pnp" {
+object PerfdataWriter "pnp" {
         perfdata_path = "/var/lib/icinga2/service-perfdata",
         format_template = "DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$",
         rotation_interval = 15s,
@@ -687,7 +687,7 @@ Once Icinga 2 is started, configure your gui (e.g. Thruk) using the livestatus b
 TCP Socket
 ----
 library "livestatus"
-local object LivestatusComponent "livestatus-tcp" {
+object LivestatusComponent "livestatus-tcp" {
        socket_type = "tcp",
        host = "10.0.10.18",
        port = "6558"
@@ -697,7 +697,7 @@ local object LivestatusComponent "livestatus-tcp" {
 Unix Socket
 ----
 library "livestatus"
-local object LivestatusComponent "livestatus-unix" {
+object LivestatusComponent "livestatus-unix" {
        socket_type = "unix",
        socket_path = "/var/run/icinga2/livestatus"
 }
@@ -726,7 +726,7 @@ Icinga 1.x setup, if existing.
 
 ----
 library "ido_mysql"
-local object IdoMysqlDbConnection "my-ido-mysql" {
+object IdoMysqlDbConnection "my-ido-mysql" {
        host = "127.0.0.1",
        port = "3306",
        user = "icinga",
index f5fb6660cc0f43f6bc49794bd1da37678140648a..f4a4afd107b2bbf6357c2bbbdee69e9cb7ab4906 100644 (file)
@@ -13,7 +13,7 @@ include <itl/standalone.conf>
 /**
  * Global configuration settings
  */
-local object IcingaApplication "icinga" {
+object IcingaApplication "icinga" {
  macros = {
     plugindir = "/usr/local/icinga/libexec"
   }
@@ -25,8 +25,8 @@ local object IcingaApplication "icinga" {
  * hosts and services. CompatLog writeis the Icinga 1.x icinga.log and archives.
  */
 library "compat"
-local object CompatComponent "compat" { }
-local object CompatLog "compat-log" { }
+object CompatComponent "compat" { }
+object CompatLog "compat-log" { }
 
 /**
  * And finally we define some host that should be checked.
index ac9f037b77107217e92e503427fbe8676e515dc9..ecd9a3ba87b0d62b2c7cefa41ca19c1e46a920e2 100644 (file)
@@ -13,7 +13,7 @@
 /**
  * Global configuration settings
  */
-local object IcingaApplication "icinga" {
+object IcingaApplication "icinga" {
   pid_path = "icinga2.pid",
   state_path = "icinga2.state",
 
@@ -28,7 +28,7 @@ local object IcingaApplication "icinga" {
  * hosts and services.
  */
 library "compat"
-local object Component "compat" {
+object Component "compat" {
   status_path = "status.dat",
   objects_path = "objects.cache",
 }