mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-07 13:54:38 +02:00
Updated test configs.
This commit is contained in:
parent
8e61490530
commit
0b9cd3423b
@ -10,20 +10,49 @@ local object application "icinga" {
|
|||||||
local object component "configrpc" {
|
local object component "configrpc" {
|
||||||
}
|
}
|
||||||
|
|
||||||
local object component "demo" {
|
local object component "delegation" {
|
||||||
}
|
}
|
||||||
|
|
||||||
local object component "discovery" {
|
local object component "discovery" {
|
||||||
broker = 0
|
broker = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
local object endpoint "icinga-c1" {
|
local object endpoint "icinga-c3" {
|
||||||
node = "192.168.5.46",
|
node = "192.168.5.46",
|
||||||
service = 7777,
|
service = 7777,
|
||||||
|
|
||||||
roles = { "broker" }
|
roles = { "all" }
|
||||||
}
|
}
|
||||||
|
|
||||||
local object role "broker" {
|
local object role "all" {
|
||||||
publications = { "discovery::NewComponent" }
|
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_type = "nagios",
|
||||||
|
check_command = "$plugindir$/check_ping -H $address$",
|
||||||
|
check_interval = 30
|
||||||
|
}
|
||||||
|
|
||||||
|
object service "localhost-ping" inherits "ping" {
|
||||||
|
host_name = "localhost",
|
||||||
|
|
||||||
|
macros += {
|
||||||
|
address = "localhost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,20 +10,21 @@ local object application "icinga" {
|
|||||||
local object component "configrpc" {
|
local object component "configrpc" {
|
||||||
}
|
}
|
||||||
|
|
||||||
local object component "demo" {
|
local object component "checker" {
|
||||||
}
|
}
|
||||||
|
|
||||||
local object component "discovery" {
|
local object component "discovery" {
|
||||||
broker = 0
|
broker = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
local object endpoint "icinga-c1" {
|
local object endpoint "icinga-c2" {
|
||||||
node = "10.0.10.14",
|
node = "192.168.2.235",
|
||||||
service = 7777,
|
service = 7777,
|
||||||
|
|
||||||
roles = { "broker" }
|
roles = { "all" }
|
||||||
}
|
}
|
||||||
|
|
||||||
local object role "broker" {
|
local object role "all" {
|
||||||
publications = "discovery::NewComponent"
|
publications = { "*" },
|
||||||
|
subscriptions = { "*" }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user