From: Nicolai L. <ja...@li...> - 2008-03-22 15:16:02
|
Gabriele Pohl wrote: > Hi, > > I installed the new version of Munin 1.3.4 > > Plugin iostat_ios wants to write a Plugstate-File: > use constant STATEFILE => '/var/opt/munin/plugin-state/iostat-ios.state'; > > Owner of directory /var/opt/munin/plugin-state/ is: > # ls -ld /var/opt/munin/plugin-state/ > drwxrwxr-x 2 munin munin 4096 Mar 22 15:21 /var/opt/munin/plugin-state/ The owner is supposed to be the PLUGINUSER from Makefile.conf, usually "nobody", and the group given by the GROUP variable, normaly "munin". I fiddled a good deal with that in the 1.3.4 Makefile: trunk $ grep PLUGSTATE Makefile mkdir -p $(PLUGSTATE) $(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE) $(CHMOD) 0775 $(PLUGSTATE) -mkdir -p $(PLUGSTATE) $(CHOWN) $(PLUGINUSER):$(GROUP) $(PLUGSTATE) $(CHMOD) 0775 $(PLUGSTATE) It seems likely that something other than the "make install" process causes the wrong ownership. The munin-check script is far from perfect but I think it gets that right. If the owner is nobody:munin there should never be a problem writing the state file. Nicolai |