Auto Discovery Issue in 5.2.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kpascoe
Posts: 10
Joined: Tue Nov 27, 2012 5:40 am
Contact:

Auto Discovery Issue in 5.2.3

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Auto Discovery Issue in 5.2.3

Post 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?
Former Nagios Employee.
me.
kpascoe
Posts: 10
Joined: Tue Nov 27, 2012 5:40 am
Contact:

Re: Auto Discovery Issue in 5.2.3

Post by kpascoe »

Unfortunately this machine doesn't have internet access. The version of the autodiscovery component is 2.2.3

Regards

Kev
kpascoe
Posts: 10
Joined: Tue Nov 27, 2012 5:40 am
Contact:

Re: Auto Discovery Issue in 5.2.3

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Auto Discovery Issue in 5.2.3

Post by jolson »

That sounds good - let us know if you experience any additional problems. Thank you!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked