Munin graphing by CGI

Posted by Vaughn Hawk on Server Fault See other posts from Server Fault or by Vaughn Hawk
Published on 2011-10-05T15:37:08Z Indexed on 2012/10/16 23:03 UTC
Read the original article Hit count: 314

Filed under:
|
|
|
|

I have Munin working just fine, but any time I try to do cgi graphing - it just stops graphing... no errors in the log, nothing. I've followed the instructions here: http://munin-monitoring.org/wiki/CgiHowto - and it should be working - here's my munin.conf setup, at least the parts that matter:

dbdir   /var/lib/munin
htmldir /var/www/munin
logdir  /var/log/munin
rundir  /var/run/munin

tmpldir /etc/munin/templates

graph_strategy cgi
cgiurl /usr/lib/cgi-bin
cgiurl_graph /cgi-bin/munin-cgi-graph

And then the host info yada yada - graph_strategy cgi and cgrurl are commented out in munin.conf - that's because if I uncomment them, graphing stops working. Again, I get no errors in logs, just blank images where the graphs used to be. Comment out cgi? As soon as munin html runs again, everything is back to normal.

I'm running the latest version of munin and munin-node - I've tried fastcgi and regular cgi - permissions for all of the directories involved are munin:www-data - and my httpd.conf file looks like this:

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 <Directory /usr/lib/cgi-bin/>
 AllowOverride None
 SetHandler fastcgi-script
 Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
 Order allow,deny
 Allow from all
 </Directory>
 <Location /cgi-bin/munin-cgi-graph>
 SetHandler  fastcgi-script
 </Location>      

Does anyone have any ideas? Without this working, at least from what I understand, Munin just graphs stuff, even if no one is looking at them - you add 100 servers to graph, and this starts to become a problem. Hope someone has ran into this and can help me out.

Thanks!

© Server Fault or respective owner

Related posts about fastcgi

Related posts about cgi