Munin with VestaCP - Monitorize Apache.

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Trentor
Posts: 63
Joined: Fri Apr 25, 2014 6:42 pm

Munin with VestaCP - Monitorize Apache.

Postby Trentor » 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.

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

Trentor
Posts: 63
Joined: Fri Apr 25, 2014 6:42 pm

Re: Munin with VestaCP - Monitorize Apache.

Postby Trentor » Thu May 11, 2017 8:52 pm

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


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 5 guests