Page 1 of 1

Munin with VestaCP - Monitorize Apache.

Posted: Thu May 11, 2017 7:23 pm
by Trentor
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.
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;
    }
}
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:

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>
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:

Code: Select all

[apache_*]
     env.url   http://127.0.0.1:%d/server-status?auto
     env.ports 8080
Anyone could please help me with this problem?

Thanks!!

Re: Munin with VestaCP - Monitorize Apache.

Posted: Thu May 11, 2017 8:52 pm
by Trentor
SOLVED

Apache was not listen in 127.0.0.1

Code: Select all

/etc/httpd/conf

Code: Select all

Listen 127.0.0.1:8080