icinga2/icinga-app/icinga-standalone.conf

74 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-06-12 11:45:37 +02:00
local object application "icinga" {
/* cert = "icinga-c1.pem",
2012-07-03 14:18:46 +02:00
ca = "ca.crt",
node = "192.168.2.235",
service = 7777*/
2012-07-03 14:18:46 +02:00
}
/*local object component "discovery" {
2012-06-12 11:45:37 +02:00
}*/
2012-06-12 11:45:37 +02:00
local object component "checker" {
2012-06-12 11:45:37 +02:00
}
2012-06-14 13:21:40 +02:00
local object component "delegation" {
}
/*local object endpoint "icinga-c2" {
2012-07-03 14:18:46 +02:00
roles = { "all" }
}
local object endpoint "icinga-c3" {
roles = { "all" }
}
local object endpoint "icinga-c4" {
roles = { "all" }
}
local object role "all" {
publications = { "*" },
subscriptions = { "*" }
}*/
2012-07-03 14:18:46 +02:00
object host "localhost" {
}
abstract object service "nagios-service" {
2012-07-14 15:59:59 +02:00
hooks = {
check = "native::NagiosCheck"
2012-07-14 15:59:59 +02:00
},
macros = {
plugindir = "/usr/local/icinga/libexec"
}
}
abstract object service "ping" inherits "nagios-service" {
check_command = "$plugindir$/check_ping -H $address$",
check_interval = 30
}
2012-06-17 21:27:13 +02:00
object service "localhost-ping1" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
2012-06-17 21:27:13 +02:00
}
object service "localhost-ping2" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
2012-07-03 14:18:46 +02:00
},
dependencies = { "localhost-ping1" }
2012-06-17 21:27:13 +02:00
}