监控机需要使用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 服务
基础教程推荐
猜你喜欢- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Centos 安装Django2.1 2023-09-24
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- windows环境下apache-apollo服务器搭建 2023-09-10
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- Docker容器操作方法详解 2022-11-13
