}
/**
- * The compat component periodically updates the status.dat and objects.cache
+ * The compat library periodically updates the status.dat and objects.cache
* files. These are used by the Icinga 1.x CGIs to display the state of
* hosts and services. CompatLog writeis the Icinga 1.x icinga.log and archives.
*/
library "compat"
-object CompatComponent "compat" { }
+object StatusDataWriter "status" { }
+object ExternalCommandListener "command" { }
object CompatLog "compat-log" { }
/**
address6 = "::1",
},
- hostcheck = "ping4",
-
- check_interval = 1m
+ check = "ping4",
}
#include <itl/itl.conf>
#include <itl/standalone.conf>
-/**
- * Global configuration settings
- */
-object IcingaApplication "icinga" {
- pid_path = "icinga2.pid",
- state_path = "icinga2.state",
+set IcingaPidPath = "icinga2.pid"
+set IcingaStatePath = "icinga2.state"
- macros = {
- plugindir = "C:\\Plugins"
- }
+set IcingaMacros = {
+ plugindir = "C:\\Plugins"
}
/**
* hosts and services.
*/
library "compat"
-object Component "compat" {
+object StatusDataWriter "status" {
status_path = "status.dat",
objects_path = "objects.cache",
}
address = "127.0.0.1"
},
- check_interval = 1m
+ check = "ping4"
}