【发布时间】:2015-12-08 20:09:53
【问题描述】:
我在设置 nagios 依赖项时遇到了困难,所以我只在主机启动时才会收到通知(Pingable)。
我的主机cfg文件如下:
# Configuration file /etc/nagios/adagios/hosts/dp-front.cfg
# Edited by PyNag on Wed Nov 11 16:38:15 2015
define host {
alias Ditmas Park Front Desk
use windows-server
host_name dp-front
address 192.168.200.47
max_check_attempts 2
check_command check-host-alive
check_period workhours
notification_period workhours
}
define service{
use generic-service
host_name dp-front
service_description Medical Records
check_command check_nt!PROCSTATE!-d SHOWALL -l Robocopy.exe
notification_interval 0
max_check_attempts 1
}
define servicedependency{
host_name localhost
service_description PING
dependent_host_name localhost
dependent_service_description PING
execution_failure_criteria c
notification_failure_criteria w,u,c
}
Nagios 正在正确监控服务,并且当服务出现故障时,我一直都会收到通知。我只是不确定如何设置它的“服务依赖”部分。
非常感谢您一如既往的帮助。
【问题讨论】:
标签: windows service dependencies nagios