Enable Apache plugin in Munin

May 13, 2020

Add the following stanza

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

# vi /etc/httpd/conf.modules.d/20-mod_status.conf
<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

# httpd -t

Restart Apache service

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

or

# apachectl fullstatus

Make sure the plugin can be enabled

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

Enable the plugin

# munin-node-configure --shell | grep apache
# 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

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

How to add a client to Munin

Install Munin on CentOS 7

comments powered by Disqus