This program gathers data from Apache's built-in status page and sends it to Zabbix. The data is sent via the CLI tool zabbix_sender.
*** See http://www.zabbix.com/wiki/templates/apache for a detailed install guide ***
- Paulson McIntyre (GpMidi) paul@gpmidi.net
- Zach Bailey znbailey@gmail.com
-
Run chmod +x on the file
-
Copy to , such as /usr/bin/
-
Add this to crontab: * * * * * /usr/bin/python /ZabbixApacheUpdater.py --zabbixsource myzabbix -z myzabbixserver &> /dev/null
-
Replace "myzabbix" with the hostname (or name in the Zabbix GUI) of the host that the values should be stored with. Replace "myzqbbixserver" with the hostname/IP of your Zabbix server.
-
Add this to your Apache config file:
<Location /server-status> SetHandler server-status Allow from 127.0.0.1 Order deny,allow Deny from all </Location> ExtendedStatus On # Optional. Must be in global scope and not in a virtual host
-
Restart/reload Apache or use ```kill -USR1 `cat /var/run/httpd.pid ```` for zero downtime
-
Load zabbix_export.xml into Zabbix
-
Link the Template_App_HTTPd into the hosts in question
GPLv2 - See LICENSE file