Munin does not update result

thunn

Verified User
Joined
Mar 13, 2012
Messages
166
Dear Supporters,
I'm having a server which run munin, but it suddenly stop working from Monday.

I have tried to re-copy it but it show error:
$rm -rf /var/www/munin-html/*
$su -s /bin/bash munin
bash$/usr/bin/munin-cron
[ERROR] Could not copy contents from /etc/munin/static/ to /var/www/munin at /usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/HTMLOld.pm line 711.

This mean the script try to copy data to /var/www/munin-html/ but it can not.
Is there something related to the folder permission of /etc/munin/static?

Thank you.
 
Hello,

You should never run munin-cron as root:

Code:
[root@server extra]# munin-cron
This program will easily break if you run it as root as you are
trying now.  Please run it as user 'munin'.  The correct 'su' command
on many systems is 'su - munin --shell=/bin/bash'
Aborting.
[root@server extra]#

to fix try to

Code:
chown -R munin:munin  /var/www/munin

If that does not help, please PM me or send me an email and I'll check it for you.
 
OK, I see it's permissions issue, as directadmin by default set this permissions

Code:
dr-xr-x--- 9 webapps apache 4096 Oct 31 16:36 /var/www

on /var/www. So I did not change permissions, but moved directory to another location. Now it should be OK.
 
Back
Top