监控机需要使用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 服务
基础教程推荐
猜你喜欢- Apache Hudi数据布局黑科技降低一半查询时间 2022-10-06
- Apache服务器配置攻略3 2022-09-01
- linux之conda环境安装全过程 2023-07-11
- centos 7 安装及配置zabbix agent 2023-09-24
- nginx.conf(centos7 1.14)主配置文件修改 2023-09-23
- 实战Nginx_取代Apache的高性能Web服务器 2023-09-29
- linux下安装apache与php;Apache+PHP+MySQL配置攻略 2023-08-07
- 服务器添加git钩子的步骤 2022-12-12
- IIS 6 的 PHP 最佳配置方法 2022-09-01
- apache和nginx结合使用 2023-09-10