我已经定义了一个主机对象“ Internet连接”,一个主机对象“ Test”将其作为父对象,但是,当Internet连接断开时,“ Test”不会更改为“ unreachable”状态。
object Host "Internet Connectivity" {
import "parents"
check_command = "ping4"
address = "8.8.8.8"
}
object Host "Test" {
import "test"
address = "172.16.0.160"
}
object Dependency "test-internet"{
parent_host_name = "Internet Connectivity"
child_host_name = "Test"
disable_checks = true
}
我想念什么?测试在“检查执行”下变为“可达”,但状态为“启动”或“关闭”,而不是“不可达”