mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Updated example configs.
This commit is contained in:
parent
df0006c55c
commit
0667491942
Binary file not shown.
@ -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",
|
||||||
|
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user