Running Nagios XI 5.2.9 on RHEL 6.
Auto-discovery wizard 1.4.0.
After running a (new or existing) auto-discovery job, Nagios returns an error XML was not valid and no scan results.
Upon investigation I find that of the three files generated during the auto-discovery job, the XML file is owned by root:
Changing the ownership of the XML file to apache.apache and refreshing the auto-discovery job list makes that the scan results show up fine.-rw-r----- 1 apache apache 207941 Nov 16 12:10 b2a27b.out
-rw-r----- 1 apache apache 0 Nov 16 12:09 b2a27b.watch
-rw-r----- 1 root root 71721 Nov 16 12:10 b2a27b.xml
Rerunning the job after that returns the ownership to root.root and gives the error again.
The umask in the jobs directory is 0077 and the ownership of the jobs directory is 776.
Why is only one file of the three owned by root? What do I need to do to make it owned by apache, without resorting to ACLs?