mirror of https://github.com/Icinga/icinga2.git
Config: only use one sample localhost
This commit is contained in:
parent
2b11b2b267
commit
44db66d79c
|
@ -78,38 +78,9 @@ abstract object Service "icinga-service" {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The service template for ping checks. In an Icinga 1.x environment
|
* The service templates for checks. In an Icinga 1.x environment
|
||||||
* this would be defined as a check command.
|
* this would be defined as a check command.
|
||||||
*/
|
*/
|
||||||
abstract object Service "ping" inherits "icinga-service" {
|
|
||||||
check_command = "$plugindir$/check_ping -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
|
|
||||||
|
|
||||||
macros += {
|
|
||||||
wrta = 50,
|
|
||||||
wpl = 5,
|
|
||||||
crta = 100,
|
|
||||||
cpl = 10
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* And finally we define some host that should be checked.
|
|
||||||
*/
|
|
||||||
object Host "localhost" {
|
|
||||||
services = { "ping" },
|
|
||||||
|
|
||||||
macros = {
|
|
||||||
address = "127.0.0.1"
|
|
||||||
},
|
|
||||||
|
|
||||||
check_interval = 1m
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Below, an advanced example of checking a host and its services
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ping
|
* ping
|
||||||
|
@ -196,8 +167,9 @@ abstract object Service "demo" inherits "icinga-service" {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* one advanced icinga2 localhost
|
* And finally we define some host that should be checked.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
object Host "localhost-i2" {
|
object Host "localhost-i2" {
|
||||||
services = {
|
services = {
|
||||||
"ping", "ping6",
|
"ping", "ping6",
|
||||||
|
|
|
@ -80,7 +80,7 @@ abstract object Service "icinga-service" {
|
||||||
* The service template for ping checks. In an Icinga 1.x environment
|
* The service template for ping checks. In an Icinga 1.x environment
|
||||||
* this would be defined as a check command.
|
* this would be defined as a check command.
|
||||||
*/
|
*/
|
||||||
abstract object Service "ping" inherits "icinga-service" {
|
abstract object Service "ping4" inherits "icinga-service" {
|
||||||
|
|
||||||
/* using check_winping from https://www.itefix.no/i2/check_winping */
|
/* using check_winping from https://www.itefix.no/i2/check_winping */
|
||||||
check_command = "$plugindir$\check_ping.exe -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
|
check_command = "$plugindir$\check_ping.exe -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
|
||||||
|
@ -96,8 +96,8 @@ abstract object Service "ping" inherits "icinga-service" {
|
||||||
/**
|
/**
|
||||||
* And finally we define some host that should be checked.
|
* And finally we define some host that should be checked.
|
||||||
*/
|
*/
|
||||||
object Host "localhost" {
|
object Host "localhost-i2" {
|
||||||
services = { "ping" },
|
services = { "ping4" },
|
||||||
|
|
||||||
macros = {
|
macros = {
|
||||||
address = "127.0.0.1"
|
address = "127.0.0.1"
|
||||||
|
|
Loading…
Reference in New Issue