Red Hat Bugzilla – Bug 1249454
munin-cron fails to copy /etc/munin/static to web directory
Last modified: 2015-08-03 22:23:45 EDT
Description of problem:
munin-cron (/usr/share/munin/munin-html, actually) prints the following:
[ERROR] Could not copy contents from /etc/munin/static to /var/www/webhost/html/munin at /usr/share/perl5/vendor_perl/Munin/Master/HTMLOld.pm line 719.
Version-Release number of selected component (if applicable):
# rpm -qva|grep munin
Every five minutes
Steps to Reproduce:
1. Prints from /etc/cron.d/munin
It should not print anything, and the webhost should be updated properly.
Did you also change your selinux contexts when you moved the munin directory?
The above uses non-default paths, so I would expect you to have policy issues.
You mean the /etc/static/munin is not the default? It's what I find in the original /etc/munin/munin.conf.
If you mean, /var/www/webhost, then what is the standard path to add new webhosts, or how do I change the selinux context?
Thanks! Really appreciate your help. When it worked in fc20, I figured it was a bug, but apparently the update re-enabled selinux.
No, what you are using is /var/www/webhost/html/munin -- this is not the default.
Long url, but that is the chapter dealing specifically with selinux and apache.
$ matchpathcon /var/www/html/munin/static /var/www/webhost/html/munin
The above shows the context for the default location, as well as the location you are using. Different context for both.
Thanks very much.