nagios.lock path issue...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

nagios.lock path issue...

Post by vishfx »

Hi Nagios Team,

I upgraded from NagiosXI 5.5.5 to NagiosXI 5.5.8 and NagiosXI 5.5.9

However, after Apply Changes OR Config File Management -> Write Configs
nagios.lock path changes to lock_file=/var/run/nagios.lock
Due to this nagios fails to startup.

Code: Select all

Jan 21 06:13:41 nagios: Things look okay - No serious problems were detected during the pre-flight check
Jan 21 06:13:41 nagios: Failed to obtain lock on file /var/run/nagios.lock: Permission denied
Jan 21 06:13:41 nagios: Bailing out due to errors encountered while attempting to daemonize... (PID=85978)
Kindly assist.

Regards,
Vish.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagios.lock path issue...

Post by npolovenko »

@vishfx, /var/run/nagios.lock Is the correct path. They changed it in the latest XI. You can still use the old path if you'd like but paths in all the following locations need to match:
cat /etc/rc.d/init.d/nagios | grep NagiosRunFile=
cat /usr/local/nagiosxi/scripts/nom_restore_nagioscore_checkpoint.sh | grep lockfile=
cat /usr/local/nagiosxi/scripts/nom_restore_nagioscore_checkpoint_specific.sh | grep lockfile=
cat /usr/local/nagios/etc/nagios.cfg | grep lock
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: nagios.lock path issue...

Post by vishfx »

Thanks, will try it out.

Regards,
Vish.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios.lock path issue...

Post by lmiltchev »

Let us know if you have any further questions. We will keep this topic open for the time being. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: nagios.lock path issue...

Post by vishfx »

I have applied the fix.
So far looks good.
You can close the case.

Regards,
Vish.
Locked