I configured the munin on Centos 7 and it is configured but the graph is not creating when I am going to check the current day graph it is not showing anything. I checked the log file munin-cgi-graph.log it is showing

Could not draw graph "/var/lib/munin/cgi-tmp/munin-cgi-graph/localhost/localhost/processes-pinpoint=1483825506,1483933506.png?&lower_limit=&upper_limit=&size_x=800&size_y=400"

I am using apache and munin 2.0.28. If anyone knows what is the problem please help. I am attaching the error screenshots:

enter image description here

enter image description here


Make sure that /var/lib/munin/cgi-tmp/munin-cgi-graph/ is writable by web user/group. You can check with following command:

ls -l /var/lib/munin/cgi-tmp/munin-cgi-graph/

As long as you are using CentOS and Apache, you should be able to fix it with following commands:

chown -R munin:apache /var/lib/munin/cgi-tmp/munin-cgi-graph/
chmod g+w /var/lib/munin/cgi-tmp/munin-cgi-graph/

More info here: https://gist.github.com/viegelinsch/49c404b1b99a462bad4f

Additionally, you may need to change init script for munin-fcgi-graph because default configuration in package do not set permissions properly - reference:

Note, munin-fastcgi-graph should really run as user www-data (or your distrib standard httpd user), otherwise you'll open write access to the CGI process. The user www-data should be able to read the state files, the rrd and write to the cgi-tmp dir.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.