您的位置:首页 > 移动开发 > IOS开发

nagios监控windows配置文件实例

2015-09-21 19:19 537 查看
[root@test services]# cat win.cfg

define host{

use windows-server,host-pnp

host_name wss2012

alias wss2012

address 192.168.0.116

}

define host{

use windows-server,host-pnp

host_name wss2013

alias wss2013

address 192.168.0.117

}

define service{

use generic-service,service-pnp

host_name wss2012

service_description NSClient++ Version

check_command check_nt!CLIENTVERSION

}

define service{

use generic-service,service-pnp

host_name wss2012

service_description Uptime

check_command check_nt!UPTIME

}

define service{

use generic-service,service-pnp

host_name wss2012

service_description Memory Usage

check_command check_nt!MEMUSE!-w 80 -c 90

}

define service{

use generic-service,service-pnp

host_name wss2012

service_description CPU Load

check_command check_nt!CPULOAD!-l 5,80,90

}

define service{

use generic-service,service-pnp

host_name wss2012

service_description C:\ Drive Space

check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90

}

define service{

use generic-service,service-pnp

host_name wss2012,wss2013

service_description check_ping

check_command check_ping!100.0,20%!200.0,50%

max_check_attempts 5

normal_check_interval 1

}

define hostgroup{

hostgroup_name win ; The name of the hostgroup

alias win ; Long name of the group

members wss2012 ; Comma separated list of hosts that belong to this group

}

define hostgroup{

hostgroup_name win02 ; The name of the hostgroup

alias win02 ; Long name of the group

members wss2013 ; Comma separated list of hosts that belong to this group

}

[root@test services]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: