- The monitor needs to use the check_apachestatus.pl plugin
Plug - ins:
https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/ Monitoring-apache-session-load-with-nagios-through-mod_status/details
- Need to modify Apache configuration file on Windows Server
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>
- Restart Apache on the Windows Server, go back to the Nagios monitor and go to the plugins directory
./check_apachestatus.pl-h windows_server_ip
- Back to the primary server definition execution command
define command{ command_name check_apache command_line $USER 1$"$ hostaddress$"}
define service{ use generic-service host_name Windows service_ Description Apache check_command check_apache }
Nagios monitors Windows Server Apache services