How to Setup Apache Monitoring with ApacheMonitor ZenPack.

From SysAdminWiki

Jump to: navigation, search
  • 1. Download and install the ZenPack from here. If your not sure how to install a ZenPack yet follow this article.
  • 2. We need to configure apache to display mod_status, and allow our zenoss server to poll it. So open open httpd.conf and add something similar to the following:
<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from 192.168.2.10
Allow from 192.168.2.46
</Location>

Our zenoss server is 192.168.2.10 in this case.
Save and restart the webserver (/etc/init.d/httpd restart or /etc/init.d/apache2 restart).

  • 3. That should allow you to connect to your http server from either of those two ips and view the server-status page. http://serverip/server-status.
  • 4. Now all we have to do is bind the Apache Template on our device. From the device status page click the drop down arrow -> More -> Templates.
  • 5. On the Performance Template page, click the drop down, the click Add Template. Type 'Apache" in ID feild. Hit OK.
  • 6. You should now start seeing apache performace data in about 5 minutes. Enjoy.

Troubleshooting

Advertisement