Enable Apache plugin in Munin

Add the following stanza

Here you have to replace the network class or add a specific IP.

1
# vi /etc/httpd/conf.modules.d/20-mod_status.conf
1
2
3
4
5
6
7
8
9
<IfModule mod_status.c>
    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1 192.168.1.0/24
    </Location>
</IfModule>

Check Apache syntax

1
# httpd -t

Restart Apache service

1
# systemctl restart httpd
1
# yum install links
1
# links http://127.0.0.1/server-status

or

1
# apachectl fullstatus

Make sure the plugin can be enabled

1
# munin-node-configure --suggest | grep apache

Enable the plugin

1
# munin-node-configure --shell | grep apache
1
2
3
# ln -s '/usr/share/munin/plugins/apache_accesses' '/etc/munin/plugins/apache_accesses'
# ln -s '/usr/share/munin/plugins/apache_processes' '/etc/munin/plugins/apache_processes'
# ln -s '/usr/share/munin/plugins/apache_volume' '/etc/munin/plugins/apache_volume'

Restart munin

1
# /etc/init.d/munin-node restart