munin: File permissions incorrect? And still unable to get it working.
We have having a torrid time getting the Munin package to work on our installation (server and clients)
On each investigation, I've assumed we are at fault and then I'm finding it unlikely the package in its state would work at all? Can anyone concur?
There's a 'smell' of a package here which exists but hasn't been tested, or used in any way. But I can see security fixes and upgrades applied over the years, which suggests some interest.
A broad summary of the issues found so far:
file permissions prevent munin-cron running; the cron is silent but errors are logged.
default configuration has a strange hostname (build host?) baked into it causing failure.
Applying a fix to various permissions, the cron 'update' process can be made to run successfully, but no graphs are generated (and no error logged)
when graphs are forced to be generated using the CGI process, the fonts are missing and replaced with boxes. No errors are logged. Missing dependency on a font package?
No template for the fastcgi graph generation (took us a while to work out how to do this)
It seems none of the permissions are correct on install. This is verified by a stream of errors from the "munin-check" script. Some permissions may be distribution-specific, of course. And it does suggest the script has a bug where no directory content is flagged as a permission error.
- Alpine Linux 3.12.1
$ doas munin-check check /usr/share/webapps/munin/html ls: cannot access '/usr/share/webapps/munin/html/*': No such file or directory # /usr/share/webapps/munin/html/* : Wrong owner ( != munin) check /var/lib/munin/cgi-tmp ls: cannot access '/var/lib/munin/cgi-tmp/*': No such file or directory # /var/lib/munin/cgi-tmp/* : Wrong owner ( != munin) check /var/lib/munin/spool ls: cannot access '/var/lib/munin/spool/*': No such file or directory # /var/lib/munin/spool/* : Wrong owner ( != munin) check miscellaneous # /var/lib/munin : Wrong owner (root != munin) ls: cannot access '/var/lib/munin/datafile': No such file or directory # /var/lib/munin/datafile : Wrong owner ( != munin) # /var/lib/munin/datafile : Wrong permissions (0 != 644) ls: cannot access '/var/lib/munin/limits': No such file or directory # /var/lib/munin/limits : Wrong owner ( != munin) # /var/lib/munin/limits : Wrong permissions (0 != 644) ls: cannot access '/var/lib/munin/*.stats': No such file or directory # /var/lib/munin/*.stats : Wrong owner ( != munin) # /var/lib/munin/*.stats : Wrong permissions (0 != 644) # /var/lib/munin-node/plugin-state : Wrong owner (root != nobody) # /var/lib/munin-node/plugin-state : Wrong permissions (755 != 775) Check done. Please note that this script only checks most things, not all things. Please also note that this script may be buggy.