Pages

Tuesday, June 26, 2012

The Munin graphs are not updating any more

You probably used --force-root with one of the munin programs. You really shouldn't have done that. Now fix the ownership of the .rrd files and of the .png and .html files so that the munin user can write to them again.

In munin 1.2.6 and 1.3.4 there will be a "check-munin" command that checks for correct owner of some files and directories. It does not work well when graph-mode is cgi though.

You can also check your configuration, in munin.conf, if you put server's IP, replace it by 127.0.0.1. (example : instead of 88.191.XX.XX, put 127.0.0.1)

Another possibility is that the structure of the generated files changed from 1.3.x to 1.4.x. Munin might be updating but the files you are looking av are no longer being updated. A quick fix is to remove all files from the munin-html directory and run munin-update again.

rm -rf /var/www/munin-html/*
su -s /bin/bash munin
/usr/bin/munin-cron

check the Logs of the node using

tail -f /var/log/munin/munin-update.log


At any point of time if you update munin configuration (the munin.conf ), update the munin server using munin user only

i.e,. run command

sudo su - munin --shell=/bin/bash

$sudo /usr/share/munin/munin-update

No comments:

Post a Comment