nagios监控多台windows

发布时间:2020-05-14 07:03:35 作者:doyopo
来源:网络 阅读:1325


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 

推荐阅读:
  1. Nagios 监控windows网卡流量
  2. shell如何监控多台主机

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

nagios监控多台windows dow %d

上一篇:Django基础概念

下一篇:php-java-bridge实践

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》