Updated example configs.

This commit is contained in:
Gunnar Beutner 2012-08-14 14:09:08 +02:00
parent df0006c55c
commit 0667491942
6 changed files with 22 additions and 19 deletions

Binary file not shown.

View File

@ -1,4 +1,4 @@
local object Application "icinga" {
local object IcingaApplication "icinga" {
cert = "icinga-c2.pem",
ca = "ca.crt",

View File

@ -1,17 +1,17 @@
local object application "icinga" {
local object IcingaApplication "icinga" {
cert = "icinga-c3.pem",
ca = "ca.crt"
}
local object component "checker" {
local object Component "checker" {
}
local object component "discovery" {
local object Component "discovery" {
broker = 0
}
/* trusted upstream endpoint */
local object endpoint "icinga-c1" {
/* upstream endpoint */
local object Endpoint "icinga-c1" {
node = "192.168.5.46",
service = 7777,
}

View File

@ -1,4 +1,4 @@
local object Application "icinga" {
local object IcingaApplication "icinga" {
cert = "icinga-c1.pem",
ca = "ca.crt",

View File

@ -1,4 +1,4 @@
local object Application "icinga" {
local object IcingaApplication "icinga" {
ca = "ca.crt",
cert = "icinga-c1.pem",

View File

@ -1,4 +1,4 @@
local object application "icinga" {
local object Application "icinga" {
ca = "ca.crt",
cert = "icinga-c2.pem",
@ -6,39 +6,41 @@ local object application "icinga" {
service = 7777
}
local object component "configrpc" {
local object Component "configrpc" {
}
local object component "delegation" {
local object Component "delegation" {
}
local object component "checker" {
local object Component "checker" {
}
local object component "discovery" {
local object Component "discovery" {
broker = 1
}
local object endpoint "icinga-c3" {
local object Endpoint "icinga-c3" {
node = "192.168.5.46",
service = 9999,
}
# --------------------------------------------
object host "localhost" {
object Host "localhost" {
}
abstract object service "nagios-service" {
check_type = "nagios",
abstract object Service "nagios-service" {
methods = {
check = "native::NagiosCheck"
},
macros = {
plugindir = "/usr/local/icinga/libexec"
}
}
abstract object service "ping" inherits "nagios-service" {
abstract object Service "ping" inherits "nagios-service" {
check_command = "$plugindir$/check_ping -H $address$ -c $crta$,$cpl$% -w $wrta$,$wpl$%",
check_interval = 30,
@ -51,10 +53,11 @@ abstract object service "ping" inherits "nagios-service" {
}
}
object service "localhost-ping" inherits "ping" {
object Service "localhost-ping" inherits "ping" {
host_name = "localhost",
macros += {
address = "localhost"
}
}