2012-07-27 16:05:02 +02:00
|
|
|
local object Application "icinga" {
|
2012-07-13 21:00:54 +02:00
|
|
|
/* cert = "icinga-c1.pem",
|
2012-07-03 14:18:46 +02:00
|
|
|
ca = "ca.crt",
|
|
|
|
|
|
|
|
node = "192.168.2.235",
|
2012-07-13 21:00:54 +02:00
|
|
|
service = 7777*/
|
2012-07-03 14:18:46 +02:00
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
/*local object Component "discovery" {
|
2012-06-12 11:45:37 +02:00
|
|
|
|
2012-07-13 21:00:54 +02:00
|
|
|
}*/
|
2012-06-12 11:45:37 +02:00
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
local object Component "checker" {
|
2012-06-12 11:45:37 +02:00
|
|
|
|
|
|
|
}
|
2012-06-13 13:42:55 +02:00
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
local object Component "delegation" {
|
2012-06-14 13:21:40 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
/*local object Endpoint "icinga-c2" {
|
2012-07-03 14:18:46 +02:00
|
|
|
roles = { "all" }
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
local object Endpoint "icinga-c3" {
|
2012-07-03 14:18:46 +02:00
|
|
|
roles = { "all" }
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
local object Endpoint "icinga-c4" {
|
2012-07-03 14:18:46 +02:00
|
|
|
roles = { "all" }
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
local object Role "all" {
|
2012-07-03 14:18:46 +02:00
|
|
|
publications = { "*" },
|
|
|
|
subscriptions = { "*" }
|
2012-07-13 21:00:54 +02:00
|
|
|
}*/
|
2012-07-03 14:18:46 +02:00
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
object Host "localhost" {
|
2012-06-13 13:42:55 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
abstract object Service "nagios-service" {
|
|
|
|
methods = {
|
2012-07-15 10:58:03 +02:00
|
|
|
check = "native::NagiosCheck"
|
2012-07-14 15:59:59 +02:00
|
|
|
},
|
2012-06-13 13:42:55 +02:00
|
|
|
|
|
|
|
macros = {
|
|
|
|
plugindir = "/usr/local/icinga/libexec"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
abstract object Service "ping" inherits "nagios-service" {
|
2012-06-14 11:18:20 +02:00
|
|
|
check_command = "$plugindir$/check_ping -H $address$",
|
2012-07-27 16:05:02 +02:00
|
|
|
check_interval = 5,
|
|
|
|
retry_interval = 5
|
2012-06-13 13:42:55 +02:00
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
object Service "localhost-ping1" inherits "ping" {
|
2012-06-13 13:42:55 +02:00
|
|
|
host_name = "localhost",
|
|
|
|
|
|
|
|
macros += {
|
|
|
|
address = "localhost"
|
|
|
|
}
|
2012-06-17 21:27:13 +02:00
|
|
|
}
|
|
|
|
|
2012-07-27 16:05:02 +02:00
|
|
|
object Service "localhost-ping2" inherits "ping" {
|
2012-06-17 21:27:13 +02:00
|
|
|
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
|
|
|
}
|