Nagios 监控windows服务器

服务器端/usr/share/check_mk/agents/windows
安装:check_mk_agent.exe install
升级:replace the file with new version
check_mk_agent.exe remove
check_mk_agent.exe install
启动服务:net start check_mk_agent
在windows检查服务状态:telnet 主机名/IP 6556
从NAGIOS服务器检查状态:telnet 主机名/IP 6556
修改check_mk服务器列表:vi /etc/check_mk/main.mk
all_hosts参数添加windows服务器名
例如:all_hosts = ['localhost','windows主机名',]
重构check_mk服务列表:check_mk -L
更新nagios:check_mk -O
重启nagios服务:
SUSE:/etc/init.d/nagios restart
CentOS:service nagios restart
Set memory level
memory_win_default_levels = {
        "memory"   : (80.0, 90.0),
        "pagefile" : (2048, 1024),
        "average"  : 60,
}

Monitor windows service
checks = [
( '<IP address>', 'services', 'Apache Tomcat TomcatPaymark', None ),
]

Ignore the windows log file monitor
1. create folder nagios_check_mk in the client server;
2. put check_mk_agent.exe in the folder; (If you have install it, stop the check_mk_agent service and remove it) 
Remove command: check_mk_agent remove
3. install the check_mk agent: check_mk_agent install
4. create one file check_mk.ini with following content
[logwatch]
logfile * = off
5. start the check_mk_agent service
6. in the nagios server reconfigure all the services
check_mk -II
check_mk -O
service nagios restart

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error