2012-06-12 11:45:37 +02:00
|
|
|
local object application "icinga" {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
local object component "demo" {
|
|
|
|
|
|
|
|
}
|
2012-06-13 13:42:55 +02:00
|
|
|
|
|
|
|
object host "localhost" {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract object service "nagios-service" {
|
|
|
|
check_type = "nagios",
|
|
|
|
|
|
|
|
macros = {
|
|
|
|
plugindir = "/usr/local/icinga/libexec"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract object service "ping" inherits "nagios-service" {
|
|
|
|
check_type = "nagios",
|
|
|
|
check_command = "$plugindir$/check_ping -H $address$"
|
|
|
|
}
|
|
|
|
|
|
|
|
object service "localhost-ping" inherits "ping" {
|
|
|
|
host_name = "localhost",
|
|
|
|
|
|
|
|
macros += {
|
|
|
|
address = "localhost"
|
|
|
|
}
|
|
|
|
}
|