监控机需要使用check_apachestatus.pl插件插件下载地址:https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/Monitoring-Apache-Session-load-with-Nagios-through-mod_status/details需要...
- 监控机需要使用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
- 回到主服务器定义执行命令
define command{ command_name check_apache command_line $USER1$/check_apachestatus.pl -H "$HOSTADDRESS$" }
define service{ use generic-service host_name Windows service_description apache check_command check_apache }
原文:http://www.cnblogs.com/Mrhuangrui/p/4645875.html
沃梦达教程本文标题为:Nagios 监控windows server Apache 服务
基础教程推荐
猜你喜欢- https协议详解 2022-12-12
- CentOS 7下的KVM网卡配置为千兆网卡 2023-09-24
- http请求报错:Too Many Requests Error的原因和解决办法 2023-12-03
- LVS+DR+apache+keepalived负载均衡 2023-09-08
- http请求报错:SSL Certificate Chain Error的原因和解决办法 2023-12-04
- Apache用户认证、域名跳转、Apache访问日志 2023-09-29
- 备份和恢复Windows IIS服务器设置的方法 2022-09-01
- Nginx geoip模块实现地区性负载均衡 2024-03-15
- Target runtime Apache Tomcat v8.0 is not defined 2023-09-08
- Nginx负载均衡之upstream模块简介与使用详解 2022-11-26
