I've created a script and template that allows Zabbix to monitor Apache's /server-status page, and I built a graph for Apache's thread scoreboard. I posted what I've done so far on the Zabbix wiki: http://zabbix.com/wiki/templates/apache
Zabbix needs to have "external check" functionality enabled, and the query_apachestats.py script should be tossed into the folder configured in zabix_server.conf
Here's an example of what my zabbix_server.conf externalscripts looks like:
I think an example illustrates the graph best:

Each of the /server-status Scoreboard metrics has a corresponding item... I haven't setup triggers for items because this would be somewhat environment specific I think... for where I work if we have more than 50 "Sending Reply" threads busy that indicates a problem, but it might not indicate a problem at your site... building triggers from what this script gives you is pretty easy though
I haven't built graphs for the other Apache metrics yet (TotalAccesses, BytesPerRequest, CPULoad, etc) but I plan to
Please provide copious amounts of feedback, tell me my python skills suck, etc
P.S. - for those familiar with Cacti, this is a direct ripoff of Cacti's "ApacheStats" template.. see this thread for the similarities
Zabbix needs to have "external check" functionality enabled, and the query_apachestats.py script should be tossed into the folder configured in zabix_server.conf
Here's an example of what my zabbix_server.conf externalscripts looks like:
Code:
### Option: ExternalScripts # Location of external scripts # # Mandatory: no # Default: ExternalScripts=/etc/zabbix/externalscripts

Each of the /server-status Scoreboard metrics has a corresponding item... I haven't setup triggers for items because this would be somewhat environment specific I think... for where I work if we have more than 50 "Sending Reply" threads busy that indicates a problem, but it might not indicate a problem at your site... building triggers from what this script gives you is pretty easy though
I haven't built graphs for the other Apache metrics yet (TotalAccesses, BytesPerRequest, CPULoad, etc) but I plan to
Please provide copious amounts of feedback, tell me my python skills suck, etc

P.S. - for those familiar with Cacti, this is a direct ripoff of Cacti's "ApacheStats" template.. see this thread for the similarities
Since I am kind of lazy to install 1.8 version again when this issue resolved I'll post the template.
Comment