Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Munin [NEED HELP]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sleepingsun
Guru
Guru


Joined: 03 May 2006
Posts: 370
Location: Bosnia

PostPosted: Thu Apr 26, 2018 2:59 pm    Post subject: Munin [NEED HELP] Reply with quote

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
View user's profile Send private message
freke
Guru
Guru


Joined: 23 Jan 2003
Posts: 383
Location: Somewhere in Denmark

PostPosted: Fri Apr 27, 2018 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
mritter
n00b
n00b


Joined: 30 Aug 2018
Posts: 1
Location: Germany, Berlin

PostPosted: Thu Aug 30, 2018 1:23 pm    Post subject: Maybe another manual fix for this. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum