View previous topic :: View next topic |
Author |
Message |
sleepingsun Guru
Joined: 03 May 2006 Posts: 458 Location: Bosnia
|
Posted: Thu Apr 26, 2018 2:59 pm Post subject: Munin [NEED HELP] |
|
|
error what i get ...
Code: | Failed to create rundir (/run/munin): Permission denied at /usr/libexec/munin/munin-update line 39. |
when i type this
Code: | mkdir -p /run/munin && chown munin /run/munin
|
no munin cron massage on my email but when is server restarted error back and every minute i get that massage ...
How to solve this problem ?
Please help _________________ Gentoo is Rocks |
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 976 Location: Somewhere in Denmark
|
Posted: Fri Apr 27, 2018 4:10 pm Post subject: |
|
|
A quick fix could be to add Code: | checkpath -d --owner munin:munin --mode 0755 /run/munin | to /etc/init.d/munin-node - I did this myself today when I ran into the same problem after moving/migrating to new hardware. |
|
Back to top |
|
|
mritter n00b
Joined: 30 Aug 2018 Posts: 1 Location: Germany, Berlin
|
Posted: Thu Aug 30, 2018 1:23 pm Post subject: Maybe another manual fix for this. |
|
|
Hi.
I'd the same issue.
I think to code the manual fix into munin-node script is not a good idea, because of disabling munin-node on the server host and keeping munin server running is disabling the fix.
In my oppinion there should be a fix in the package for munin server part, so the solution is installed for everyone that uses the munin-pakage for server usage.
My current solution is a script in /etc/local.d/
/etc/local.d/10_munin.run_dir_creation_and_set_permission.sh.start
Code: |
#!/bin/bash
sDirName=/run/munin
echo "Create munin run directory '$sDirName' with proper permissions."
if [ ! -d "$sDirName" ]; then
mkdir -v "$sDirName
fi
chown -c munin "$sDirName"
|
|
|
Back to top |
|
|
Ronhks n00b
Joined: 20 Jan 2008 Posts: 8 Location: Hungary
|
Posted: Sat Mar 21, 2020 4:01 pm Post subject: Re: Maybe another manual fix for this. |
|
|
Thanks! That solved my probles also.
The code missing a closing quote sign. I fixed it there:
Code: |
#!/bin/bash
sDirName=/run/munin
echo "Create munin run directory '$sDirName' with proper permissions."
if [ ! -d "$sDirName" ]; then
mkdir -v "$sDirName"
fi
chown -c munin "$sDirName"
|
mritter wrote: | Hi.
I'd the same issue.
I think to code the manual fix into munin-node script is not a good idea, because of disabling munin-node on the server host and keeping munin server running is disabling the fix.
In my oppinion there should be a fix in the package for munin server part, so the solution is installed for everyone that uses the munin-pakage for server usage.
My current solution is a script in /etc/local.d/
/etc/local.d/10_munin.run_dir_creation_and_set_permission.sh.start
Code: |
#!/bin/bash
sDirName=/run/munin
echo "Create munin run directory '$sDirName' with proper permissions."
if [ ! -d "$sDirName" ]; then
mkdir -v "$sDirName
fi
chown -c munin "$sDirName"
|
|
|
|
Back to top |
|
|
|