icinga2/icinga-app/icinga2.conf

68 lines
1.0 KiB
Plaintext

local object application "icinga" {
ca = "ca.crt",
cert = "icinga-c2.pem",
node = "192.168.2.235",
service = 7777
}
local object component "configrpc" {
}
local object component "delegation" {
}
local object component "checker" {
}
local object component "discovery" {
broker = 1
}
local object endpoint "icinga-c3" {
node = "192.168.5.46",
service = 9999,
roles = { "all" }
}
local object role "all" {
publications = { "*" },
subscriptions = { "*" }
}
# --------------------------------------------
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_command = "$plugindir$/check_ping -H $address$ -c $crta$,$cpl$% -w $wrta$,$wpl$%",
check_interval = 30,
macros += {
crta = 100,
wrta = 50,
cpl = 25,
wpl = 5
}
}
object service "localhost-ping" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
}