Bug 746083

Summary: permission denied to write to /var/lib/munin/plugin-state/ (iostat_ios/diskstats)
Product: [Fedora] Fedora Reporter: Zing <zing>
Component: muninAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dkovalsk, drjohnson1, ingvar, kevin, tomas.srnka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-27 07:22:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
munin-node.conf
none
simple whoami plugin none

Description Zing 2011-10-13 20:27:45 UTC
Description of problem:
iostat_ios and diskstats try to write some state stuff to /var/lib/munin/plugin-state but fail with permission denied... I presume they're run as nobody by default and that's why it's failing.


I added the following to /etc/munin/plugin-conf.d/munin-node:

======================================================
[diskstats]
user munin

[iostat_ios]
user munin
======================================================

and they both started working.

Note: there could be other plugins that need this also, but these are just the ones I ran into after a base install.

Version-Release number of selected component (if applicable):
munin-node-1.4.6-4.fc15.1.noarch

Comment 1 Kevin Fenzi 2011-10-15 21:40:32 UTC
It should be running by default as root... can you attach your /etc/munin/munin-node.conf file?

Comment 2 Zing 2011-10-17 14:07:56 UTC
Created attachment 528545 [details]
munin-node.conf

My munin-node.conf is pretty much stock... I just removed an "allow" line before uploading it.  The user and group options are set to root.

I made a simple plugin just to see what the euid is, which I'll attach next...

Comment 3 Zing 2011-10-17 14:13:09 UTC
Created attachment 528547 [details]
simple whoami plugin

stick this in /etc/munin/plugins and then run "munin-run whoami"

# munin-run whoami
whoami.value nobody

FYI, selinux is disabled on this machine if that matters (it shouldn't, but just mentioning it.)

Comment 4 Kevin Fenzi 2012-05-18 15:34:09 UTC
*** Bug 822919 has been marked as a duplicate of this bug. ***

Comment 5 Kevin Fenzi 2012-05-18 15:35:19 UTC
This bug dropped off my radar. :( Sorry about that. 

Will try and figure out whats going on soon here... additional debugging welcome. 

I'm not sure how/why it would ever run as nobody.

Comment 6 Tomas Srnka 2012-05-19 13:15:56 UTC
This bug is also present in RHEL6's package in EPEL.

Comment 7 Fedora Update System 2012-05-19 16:27:16 UTC
munin-1.4.7-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/munin-1.4.7-5.fc17

Comment 8 Fedora Update System 2012-05-19 16:29:47 UTC
munin-1.4.7-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/munin-1.4.7-5.fc16

Comment 9 Fedora Update System 2012-05-19 16:34:32 UTC
munin-1.4.7-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/munin-1.4.7-5.fc15

Comment 10 Fedora Update System 2012-05-19 16:37:25 UTC
munin-1.4.7-5.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/munin-1.4.7-5.el6

Comment 11 Fedora Update System 2012-05-19 16:40:09 UTC
munin-1.4.7-5.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/munin-1.4.7-5.el5

Comment 12 Fedora Update System 2012-05-19 18:33:00 UTC
Package munin-1.4.7-5.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing munin-1.4.7-5.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8123/munin-1.4.7-5.fc17
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-05-27 07:22:29 UTC
munin-1.4.7-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2012-05-28 01:24:24 UTC
munin-1.4.7-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2012-05-28 01:25:59 UTC
munin-1.4.7-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-06-03 18:29:56 UTC
munin-1.4.7-5.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2012-06-03 18:31:00 UTC
munin-1.4.7-5.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.