-local object application "icinga" {
+local object IcingaApplication "icinga" {
cert = "icinga-c3.pem",
ca = "ca.crt"
}
-local object component "checker" {
+local object Component "checker" {
}
-local object component "discovery" {
+local object Component "discovery" {
broker = 0
}
-/* trusted upstream endpoint */
-local object endpoint "icinga-c1" {
+/* upstream endpoint */
+local object Endpoint "icinga-c1" {
node = "192.168.5.46",
service = 7777,
}
-local object application "icinga" {
+local object Application "icinga" {
ca = "ca.crt",
cert = "icinga-c2.pem",
service = 7777
}
-local object component "configrpc" {
+local object Component "configrpc" {
}
-local object component "delegation" {
+local object Component "delegation" {
}
-local object component "checker" {
+local object Component "checker" {
}
-local object component "discovery" {
+local object Component "discovery" {
broker = 1
}
-local object endpoint "icinga-c3" {
+local object Endpoint "icinga-c3" {
node = "192.168.5.46",
service = 9999,
}
# --------------------------------------------
-object host "localhost" {
+object Host "localhost" {
}
-abstract object service "nagios-service" {
- check_type = "nagios",
+abstract object Service "nagios-service" {
+ methods = {
+ check = "native::NagiosCheck"
+ },
macros = {
plugindir = "/usr/local/icinga/libexec"
}
}
-abstract object service "ping" inherits "nagios-service" {
+abstract object Service "ping" inherits "nagios-service" {
check_command = "$plugindir$/check_ping -H $address$ -c $crta$,$cpl$% -w $wrta$,$wpl$%",
check_interval = 30,
}
}
-object service "localhost-ping" inherits "ping" {
+object Service "localhost-ping" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
}
+