Munin with VestaCP - Monitorize Apache.
Posted: Thu May 11, 2017 7:23 pm
Hi there,
I need your help to configure Munin to analyze apache.
I have a default VestaCP configuration with apache + nginx, on CentOS 7.
I have no problems in Munin with nginx plugins, I've put the code below and it's working ok.
The problem comes with Apache. I tried dozens of options but I can't make it work.
Of course, I've the apache-status module installed.
Is supposed that I have to put the code in:
But it's not working. No errors in Apache log, neither in Munin' log.
I'm also modified the code of the Munin Apache plugins:
Anyone could please help me with this problem?
Thanks!!
I need your help to configure Munin to analyze apache.
I have a default VestaCP configuration with apache + nginx, on CentOS 7.
I have no problems in Munin with nginx plugins, I've put the code below and it's working ok.
SpoilerShow
Code: Select all
/home/admin/conf/web/nginx.conf
Code: Select all
server {
listen 127.0.0.1:80;
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
Of course, I've the apache-status module installed.
Is supposed that I have to put the code in:
Code: Select all
/etc/httpd/conf/httpd.conf
Code: Select all
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
I'm also modified the code of the Munin Apache plugins:
Code: Select all
[apache_*]
env.url http://127.0.0.1:%d/server-status?auto
env.ports 8080
Thanks!!