icinga2/icinga-app/icinga2.conf

69 lines
1.0 KiB
Plaintext
Raw Normal View History

2012-06-12 11:45:37 +02:00
local object application "icinga" {
privkey = "icinga-c2.key",
pubkey = "icinga-c2.crt",
cakey = "ca.crt",
2012-06-12 11:56:12 +02:00
node = "192.168.2.235",
2012-06-14 16:31:38 +02:00
service = 7777
2012-06-12 11:45:37 +02:00
}
local object component "configrpc" {
}
2012-06-14 16:14:13 +02:00
local object component "delegation" {
2012-06-12 11:45:37 +02:00
}
2012-06-14 21:09:35 +02:00
local object component "checker" {
}
2012-06-12 11:45:37 +02:00
local object component "discovery" {
2012-06-14 16:14:13 +02:00
broker = 1
2012-06-12 11:45:37 +02:00
}
2012-06-14 16:14:13 +02:00
local object endpoint "icinga-c3" {
2012-06-12 11:56:12 +02:00
node = "192.168.5.46",
2012-06-14 16:31:38 +02:00
service = 9999,
2012-06-12 11:45:37 +02:00
2012-06-14 16:14:13 +02:00
roles = { "all" }
2012-06-12 11:45:37 +02:00
}
2012-06-14 16:14:13 +02:00
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" {
2012-06-14 21:09:35 +02:00
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
}
2012-06-14 16:14:13 +02:00
}
object service "localhost-ping" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
2012-06-12 11:45:37 +02:00
}