|
/Admin/Monitoring/munin:
Turn on the Apache Munin Plugins
You need to enable extended status on Apache. Assuming the status module is enabled, create another file /etc/apache2/conf.d/extendedStatus containing the following:
ExtendedStatus On SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 localhost
(Note that /etc/apache2/mods-enabled/status.conf contains some of the above, but may not be enough.)
Restart Apache, and now on the server itself, if you use a terminal-based web browser like w3m, for instance, this
w3m localhost/server-status
should show you Apache's status page. And now these plugins should work:
apache_accesses -> /usr/share/munin/plugins/apache_accesses
apache_processes -> /usr/share/munin/plugins/apache_processes
apache_volume -> /usr/share/munin/plugins/apache_volume
And finally, if due to some insoluble weirdness in your Apache configuration you cannot get it working, I have found (thanks to [1]) that putting the status stuff on another port can work, ie. /etc/apache2/mods-enabled/status.conf:
# # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Uncomment and change the ".example.com" to allow # access from other hosts. # Listen 8001 ExtendedStatus On SetHandler server-status Order deny,allow Deny from all Allow from localhost ip6-localhost # Allow from .example.com
Then in the tree /usr/share/munin/plugins/apache_* files, replace
my @PORTS = exists $ENV{'ports'} ? split(' ', $ENV{'ports'}) : (80);
with
my @PORTS = (8001);
And hopefully you are good to go.
[1] http://serverfault.com/questions/200320/apache-server-status-403-at-non-standard-port
posted at: 03:04 | path: /Admin/Monitoring/munin | permanent link to this entry