mirror of https://github.com/Icinga/icinga2.git
Config: add a demo service example (since #3250 is now fixed)
This commit is contained in:
parent
0f19f24843
commit
9b9d4903ee
|
@ -112,7 +112,7 @@ object Host "localhost" {
|
||||||
* Below, an advanced example of checking a host and its services
|
* Below, an advanced example of checking a host and its services
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* ping
|
* ping
|
||||||
*/
|
*/
|
||||||
abstract object Service "ping4" inherits "icinga-service" {
|
abstract object Service "ping4" inherits "icinga-service" {
|
||||||
|
@ -135,21 +135,21 @@ abstract object Service "ping6" inherits "icinga-service" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* http
|
* http
|
||||||
*/
|
*/
|
||||||
abstract object Service "http" inherits "icinga-service" {
|
abstract object Service "http" inherits "icinga-service" {
|
||||||
check_command = "$plugindir$/check_http -H '$address$' -I '$address$'",
|
check_command = "$plugindir$/check_http -H '$address$' -I '$address$'",
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* ssh
|
* ssh
|
||||||
*/
|
*/
|
||||||
abstract object Service "ssh" inherits "icinga-service" {
|
abstract object Service "ssh" inherits "icinga-service" {
|
||||||
check_command = "$plugindir$/check_ssh '$address$'",
|
check_command = "$plugindir$/check_ssh '$address$'",
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* local checks
|
* local checks
|
||||||
*/
|
*/
|
||||||
abstract object Service "disk space" inherits "icinga-service" {
|
abstract object Service "disk space" inherits "icinga-service" {
|
||||||
|
@ -188,8 +188,15 @@ abstract object Service "current load" inherits "icinga-service" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* demo check
|
||||||
|
*/
|
||||||
|
abstract object Service "demo" inherits "icinga-service" {
|
||||||
|
check_command = "$plugindir$/check_dummy 1 'strawberry. yummy! | i=2'",
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
/**
|
||||||
* one advanced icinga2 localhost
|
* one advanced icinga2 localhost
|
||||||
*/
|
*/
|
||||||
object Host "localhost-i2" {
|
object Host "localhost-i2" {
|
||||||
|
@ -198,6 +205,7 @@ object Host "localhost-i2" {
|
||||||
"http", "ssh",
|
"http", "ssh",
|
||||||
"current load", "total processes",
|
"current load", "total processes",
|
||||||
"current users", "disk space",
|
"current users", "disk space",
|
||||||
|
"demo",
|
||||||
},
|
},
|
||||||
macros = {
|
macros = {
|
||||||
address = "127.0.0.1",
|
address = "127.0.0.1",
|
||||||
|
|
Loading…
Reference in New Issue