Page 1 of 1

Auto Discovery Issue in 5.2.3

Posted: Fri Dec 11, 2015 5:34 am
by kpascoe
After installing NagiosXI 5.2.3, my autodiscovery jobs were not running.
Either on their scheduled times or using the play icon on the job, from
the autodiscovery wizard webpage.



The problem appears to be a permissions issue. All the files in
/usr/local/nagiosxi/html/includes/components/autodiscovery/jobs are
owned by nagios:nagios, but the permissions are rw-r----- (640)

This means the apache user, who runs the jobs, does not have permissions
to remove the old files and start a new discover job



Changing the permissions of all the files to 660 seems to have cured the
problem.



This is Nagios 5.2.3, running on Red Hat Enterprise 6.5 64 bit and is a
manual install



Regards



Kevin

Re: Auto Discovery Issue in 5.2.3

Posted: Fri Dec 11, 2015 10:48 am
by hsmith
I just initiated an auto-discovery job on my server and it made the files with these permissions:

Code: Select all

-rw-r--r-- 1 apache nagios  3866 Dec 11 09:47 orr7g9.out
-rw-r--r-- 1 apache nagios     0 Dec 11 09:47 orr7g9.watch
Can you take a look under Admin --> Manage Components and see if you have a component upgrade available?

Re: Auto Discovery Issue in 5.2.3

Posted: Mon Dec 14, 2015 4:02 am
by kpascoe
Unfortunately this machine doesn't have internet access. The version of the autodiscovery component is 2.2.3

Regards

Kev

Re: Auto Discovery Issue in 5.2.3

Posted: Mon Dec 14, 2015 4:05 am
by kpascoe
Ignore that. I just created a new auto discovery job and the files are indeed owned by apache. I can only assume that the wizard used to create the files as nagios:nagios.

I will change the owner to apache and change the permissions back to 644

Regards

Kev

Re: Auto Discovery Issue in 5.2.3

Posted: Mon Dec 14, 2015 10:21 am
by jolson
That sounds good - let us know if you experience any additional problems. Thank you!