- 论坛徽章:
- 0
|
多谢 solaris小兵
我是 nagios 3.0,编辑的是 默认的 windows.cfg
下面是我主机的配置 和 IIS 的配置
-------------------主机---------------------------
define host{
use windows-server ; Inherit default values from a template
host_name winserver ; The name we're giving to this host
alias My Windows Server ; A longer name associated with the host
address 192.168.24.31 ; IP address of the host
check_command check-host-alive
max_check_attempts 1
notification_options d,u,r,f
}
--------------------IIS--------------------
define service{
use generic-service
host_name winserver
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
max_check_attempts 1
notification_options w,u,c,r,f,s
}
-----------------------------------------------------
本来 notification_options 通知状态没有写这么多,不过状态改变 一直不发短信通知,我就把各种状态都 配置里面了,不过还是不发: w,u,c,r,f,s |
|