Active checks of apache via mod_status, triggered via a single passive check. This works for Apache 2.2 and is based on this post with slight modifications to make it work for me.
* Uncompress zip file into ~zabbix/bin directory
* Edit zabbix_agentd.conf to set "Hostname=" value properly and add following:
* Edit apache config to add something like:
Or something like this - make sure mod_status is enabled
* Import the xml into zabbix server and add template to the server you are monitoring.
HTH
EDIT 4/8/8: Replacing download version with new files. Fixed an issue when /bin/sh is not same as /bin/bash. Added apache.dyn_hitspersec parameter which calculated hits per second on every request in addition/instead of apache.reqpersec which gives you average since Apache was started.
-HH
* Uncompress zip file into ~zabbix/bin directory
* Edit zabbix_agentd.conf to set "Hostname=" value properly and add following:
Code:
UserParameter=apache.all,~zabbix/bin/apache.pl http://localhost
Code:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
# Allow from 192.168.1.*
</Location>
* Import the xml into zabbix server and add template to the server you are monitoring.
HTH
EDIT 4/8/8: Replacing download version with new files. Fixed an issue when /bin/sh is not same as /bin/bash. Added apache.dyn_hitspersec parameter which calculated hits per second on every request in addition/instead of apache.reqpersec which gives you average since Apache was started.
-HH
Comment