nagios监控windows配置文件实例

[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]# 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值