Add ITL hostcheck command for sample config.

Fixes #5939
This commit is contained in:
Michael Friedrich 2014-04-04 16:22:12 +02:00
parent 23e9630682
commit 9dd37cf9bc
2 changed files with 11 additions and 19 deletions

View File

@ -3,25 +3,7 @@
* all hosts should import this template. * all hosts should import this template.
*/ */
template Host "generic-host" { template Host "generic-host" {
check = "ping4" check_command = "hostcheck"
}
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
assign where "generic-host" in host.templates
ignore where !host.vars.address
}
apply Service "ping6" {
import "generic-service"
check_command = "ping6"
assign where "generic-host" in host.templates
ignore where !host.vars.address6
} }
template Host "linux-server" { template Host "linux-server" {

View File

@ -63,6 +63,16 @@ object CheckCommand "ping6" {
vars.timeout = 0 vars.timeout = 0
} }
object CheckCommand "hostcheck" {
import "ping4"
vars.wrta = 3000.0,
vars.wpl = 80,
vars.crta = 5000.0,
vars.cpl = 100
}
object CheckCommand "dummy" { object CheckCommand "dummy" {
import "plugin-check-command", import "plugin-check-command",