nagios监控多台windows
编辑监控主机文件
vi /usr/local/nagios/etc/objects/win2003.cfg
define host{
use linux-server
host_name win2003
alias win2003
address 192.168.0.13
}
define hostgroup{
hostgroup_name win2003-servers
alias win2003
members win2003
}
define service{
use generic-service
host_name win2003
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service
host_name win2003
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use generic-service
host_name win2003
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
define service{
use generic-service
host_name win2003
service_description Uptime
check_command check_nt!UPTIME
}
define service{
use generic-service
host_name win2003
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service
host_name win2003
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}
编辑 Nagios配置文件,添加所要监控的主机
vi /usr/local/nagios/etc/nagios.cfg
clip_p_w_picpath007
检查配置文件
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
确定配置文件无误后重新启动Nagios
service nagios restart
测试
http://localhost/nagios
vi /usr/local/nagios/etc/objects/win2003.cfg
define host{
use linux-server
host_name win2003
alias win2003
address 192.168.0.13
}
define hostgroup{
hostgroup_name win2003-servers
alias win2003
members win2003
}
define service{
use generic-service
host_name win2003
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service
host_name win2003
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use generic-service
host_name win2003
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
define service{
use generic-service
host_name win2003
service_description Uptime
check_command check_nt!UPTIME
}
define service{
use generic-service
host_name win2003
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service
host_name win2003
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}
编辑 Nagios配置文件,添加所要监控的主机
vi /usr/local/nagios/etc/nagios.cfg
clip_p_w_picpath007
检查配置文件
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
确定配置文件无误后重新启动Nagios
service nagios restart
测试
http://localhost/nagios
成都一家集口碑和实力的网站建设服务商,拥有专业的企业建站团队和靠谱的建站技术,十年企业及个人网站建设经验 ,为成都上千客户提供网页设计制作,网站开发,企业网站制作建设等服务,包括成都营销型网站建设,品牌网站建设,同时也为不同行业的客户提供网站设计、成都网站设计的服务,包括成都电商型网站制作建设,装修行业网站制作建设,传统机械行业网站建设,传统农业行业网站制作建设。在成都做网站,选网站制作建设服务商就选成都创新互联公司。
分享题目:nagios监控多台windows
当前网址:http://myzitong.com/article/jdishi.html