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", cert = "icinga-c2.pem",
ca = "ca.crt", ca = "ca.crt",

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
local object application "icinga" { local object Application "icinga" {
ca = "ca.crt", ca = "ca.crt",
cert = "icinga-c2.pem", cert = "icinga-c2.pem",
@ -6,39 +6,41 @@ local object application "icinga" {
service = 7777 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 broker = 1
} }
local object endpoint "icinga-c3" { local object Endpoint "icinga-c3" {
node = "192.168.5.46", node = "192.168.5.46",
service = 9999, service = 9999,
} }
# -------------------------------------------- # --------------------------------------------
object host "localhost" { object Host "localhost" {
} }
abstract object service "nagios-service" { abstract object Service "nagios-service" {
check_type = "nagios", methods = {
check = "native::NagiosCheck"
},
macros = { macros = {
plugindir = "/usr/local/icinga/libexec" 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_command = "$plugindir$/check_ping -H $address$ -c $crta$,$cpl$% -w $wrta$,$wpl$%",
check_interval = 30, 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", host_name = "localhost",
macros += { macros += {
address = "localhost" address = "localhost"
} }
} }