mirror of https://github.com/Icinga/icinga2.git
parent
23e9630682
commit
9dd37cf9bc
|
@ -3,25 +3,7 @@
|
|||
* all hosts should import this template.
|
||||
*/
|
||||
template Host "generic-host" {
|
||||
check = "ping4"
|
||||
}
|
||||
|
||||
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
|
||||
check_command = "hostcheck"
|
||||
}
|
||||
|
||||
template Host "linux-server" {
|
||||
|
|
|
@ -63,6 +63,16 @@ object CheckCommand "ping6" {
|
|||
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" {
|
||||
import "plugin-check-command",
|
||||
|
||||
|
|
Loading…
Reference in New Issue