- 监控机需要使用check_apachestatus.pl插件
插件下载地址:
https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/Monitoring-Apache-Session-load-with-Nagios-through-mod_status/details - 需要到windows 服务器上修改apache配置文件
LoadModule status_module modules/mod_status.so
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from Nagios_server_ip
</Location>
ExtendedStatus On
</IfModule> - 重启windows 服务器上的Apache,回到Nagios监控机,进入插件目录
./check_apachestatus.pl -H Windows_server_ip
- 回到主服务器定义执行命令
<span>define command{ command_name check_apache command_line $USER1$</span>/check_apachestatus.pl -H <span>"</span><span>$HOSTADDRESS$</span><span>"</span><span> }</span><span>define service{ use generic</span>-<span>service host_name Windows service_description apache check_command check_apache }</span>
原文:http://www.cnblogs.com/Mrhuangrui/p/4645875.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!