mirror of https://github.com/Icinga/icinga2.git
Updated standalone config example.
This commit is contained in:
parent
94434e343d
commit
c1ce5ed8ba
|
@ -1,10 +1,4 @@
|
||||||
local object IcingaApplication "icinga" {
|
local object IcingaApplication "icinga" {
|
||||||
cert = "icinga-c1.pem",
|
|
||||||
ca = "ca.crt",
|
|
||||||
|
|
||||||
node = "192.168.2.235",
|
|
||||||
service = 7777,
|
|
||||||
|
|
||||||
macros = {
|
macros = {
|
||||||
plugindir = "/usr/local/icinga/libexec"
|
plugindir = "/usr/local/icinga/libexec"
|
||||||
}
|
}
|
||||||
|
@ -42,20 +36,6 @@ abstract object Service "ping" inherits "nagios-service" {
|
||||||
retry_interval = 5
|
retry_interval = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
object Service "localhost-ping1" inherits "ping" {
|
object Host "localhost" {
|
||||||
host_name = "localhost",
|
services = { "ping" }
|
||||||
|
|
||||||
macros += {
|
|
||||||
address = "localhost"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
object Service "localhost-ping2" inherits "ping" {
|
|
||||||
host_name = "localhost",
|
|
||||||
|
|
||||||
macros += {
|
|
||||||
address = "localhost"
|
|
||||||
},
|
|
||||||
|
|
||||||
dependencies = { "localhost-ping1" }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue