Page 1 of 1

nagios.lock path issue...

Posted: Mon Jan 21, 2019 7:31 am
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.

Re: nagios.lock path issue...

Posted: Mon Jan 21, 2019 5:17 pm
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

Re: nagios.lock path issue...

Posted: Tue Jan 22, 2019 6:22 am
by vishfx
Thanks, will try it out.

Regards,
Vish.

Re: nagios.lock path issue...

Posted: Tue Jan 22, 2019 1:06 pm
by lmiltchev
Let us know if you have any further questions. We will keep this topic open for the time being. Thank you!

Re: nagios.lock path issue...

Posted: Mon Jan 28, 2019 2:31 am
by vishfx
I have applied the fix.
So far looks good.
You can close the case.

Regards,
Vish.