Monday, December 13, 2010

Munin/Apache Plugin

Apache Plugin

The default install of Munin on Debian Lenny comes with 3 apache backend:
  • apache_processes
  • apache_accesses
  • apache_volume
The first one works out of the box, while the 2 others depend on the status module of Apache. As such, Apache needs to be configured to use this module, moreover, the ExtendedStatus must be enabled.

apache2 server config

First make sure that status module is enabled:
# a2enmod status
Then, edit /etc/apache2/mods-available/status.conf and add, just above <Location /server-status> :
ExtendedStatus On
Then, restart the service:
# /etc/init.d/apache2 restart

munin node config

Link the plugins to /etc/munin/plugins:
# ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses
# ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volume
and restart munin-node
# /etc/init.d/munin-node restart
Retrieved from ""

If your Apache is not on port 80, edit the plugin config file /etc/munin/plugin-conf.d/munin-node and change or add these lines:
env.ports 81

No comments:

Post a Comment

Error: Too many open files

Couple days ago, I ran into this error on CentOS 5.2.  To my understanding this error can occur on all flavors of l...