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]#
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]#
相关文章推荐
- nagios报警次数限制
- iOS开发系列--打造自己的“美图秀秀”
- iOS 编译 <Error>: CGContextRestoreGState:
- 升级iOS9系统后,需要更新的相关配置
- iOS打电话发短信发邮件总结
- 真机运行时报错
- ios上取得设备唯一标志的解决方案
- ios开发笔记-适配iOS9
- ios 无限后台
- 苹果开发 笔记(80)升级IOS 9 和 XCode 7 引起的问题记录
- iOS 9 适配系列教程
- 整理iOS9适配
- iOS9适配系列教程
- iOS 常用控件的创建
- iOS 重命名项目的完整方法
- iostream与iostream.h乱弹琴
- iOS_文章3党库SDWebImage
- 七牛如何安装ios sdk (使用纯源码安装)
- Masonry -- 使用纯代码进行iOS应用的autolayout自适应布局
- iOS使用CoreMotion实现摇一摇功能