监控机需要使用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 服务
猜你喜欢- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- 阿里云ECS排查CPU数据分析 2022-10-06
- IIS搭建ftp服务器的详细教程 2022-11-15
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
- 利用Docker 运行 python 简单程序 2022-10-16
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23
- 【转载】CentOS安装Tomcat 2023-09-24
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11