Munin Apache graphs have disappeared

apache-2.2graphmunin

I'm running Apache2 and Munin on Ubuntu 12.04. All of my Munin graphs are showing up fine (cpu, memory, etc.), except for the Apache graphs.

The Apache graphs were working at one point, which you can see from this screenshot showing data from a few months ago: http://i.imgur.com/uk3aAnJ.png. But now there's nothing there.

Apache itself is running fine, with lots of activity (website getting around 500,000 pageviews per month).

UPDATE:

Checked apache log, and found that munin's attempts to access server-status seemed to be getting redirected (notice 301):

127.0.0.1 - - [09/Mar/2013:07:25:02 -0600] "GET /server-status?auto HTTP/1.1" 301 590 "-" "libwww-perl/6.03"

So followed the suggestion here and added RewriteRule ^(server-info|server-status) - [L] to my .htaccess file. Now inspecting apache log I see attempts to access server-status are apparently successful (notice 200):

127.0.0.1 - - [09/Mar/2013:07:40:01 -0600] "GET /server-status?auto HTTP/1.1" 200 781 "-" "libwww-perl/6.03"

However: Munin Apache graphs are still blank.

wget http://127.0.0.1/server-status?auto returns:

127.0.0.1 - - [09/Mar/2013:07:35:01 -0600] "GET /server-status?auto HTTP/1.1" 200 781 "-" "libwww-perl/6.03"

munin-run apache_processes autoconf returns:

Unknown service 'apache_processes'

Could that indicate a problem?

Update 2:

Well, looks like I didn't wait long enough after fixing the htaccess file… Munin graphs now seem to be working.

Best Answer

I had same issue when I put a password for /server-status Location. So first of all you should check that you have /server-status location opened for localhost/127.0.0.1. In case munin and munin-node are on different servers then munin should be able to read munin-node's /server-status.

If it doesn't hep check out the munin logs. Error should be definetly there.

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from localhost
   #Allow from all          
</Location>