mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
parent
23e9630682
commit
9dd37cf9bc
@ -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" {
|
||||||
|
@ -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",
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user