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
Auto Discovery Issue in 5.2.3
Re: Auto Discovery Issue in 5.2.3
I just initiated an auto-discovery job on my server and it made the files with these permissions:
Can you take a look under Admin --> Manage Components and see if you have a component upgrade available?
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
Former Nagios Employee.
me.
me.
Re: Auto Discovery Issue in 5.2.3
Unfortunately this machine doesn't have internet access. The version of the autodiscovery component is 2.2.3
Regards
Kev
Regards
Kev
Re: Auto Discovery Issue in 5.2.3
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
I will change the owner to apache and change the permissions back to 644
Regards
Kev
Re: Auto Discovery Issue in 5.2.3
That sounds good - let us know if you experience any additional problems. Thank you!