Red Hat Bugzilla – Bug 822919
iostat_ios plugin doesn't work correctly / permissions wrong
Last modified: 2014-03-31 19:46:52 EDT
I installed munin on a clean system and noticed that iostat_ios plugin didn't work. It failed with:
munin-run --pidebug --debug iostat_ios
# Processing plugin configuration from /etc/munin/plugin-conf.d/df
# Processing plugin configuration from /etc/munin/plugin-conf.d/hddtemp_smartctl
# Processing plugin configuration from /etc/munin/plugin-conf.d/munin-node
# Processing plugin configuration from /etc/munin/plugin-conf.d/postfix
# Processing plugin configuration from /etc/munin/plugin-conf.d/sendmail
# Set /rgid/ruid/egid/euid/ to /493/99/493 493 /99/
# Setting up environment
# About to run '/etc/munin/plugins/iostat_ios'
iostat_ios: No historic data present
can't create /var/lib/munin/plugin-state/iostat-ios.state: Permission denied at /etc/munin/plugins/iostat_ios line 212
The state dir is writable by the munin user:
drwxr-xr-x. 2 munin munin 4096 May 18 15:40 .
drwxr-xr-x. 5 munin munin 4096 May 18 15:40 ..
-rw-r--r--. 1 munin munin 0 May 13 18:15 yum.state
SELinux in Permissive.
But munin UID != GID:
If I do `chmod g+w /var/lib/munin/plugin-state/', the plugin starts working again. Is there any harm in making the state dir group writeable (for munin)?
Or is this really a problem of munin not changing effective UID to munin (492)?
This looks like another case of 746083. Moving over there for more debugging...
*** This bug has been marked as a duplicate of bug 746083 ***