Page 1 of 1

lock File - nagios not running

Posted: Thu May 02, 2019 12:34 pm
by orani
My nagios server (process_ suddenly stopped running.

When i run service nagios status i get

No lock file found in /var/run/nagios.lock
and at the web interface
unable to get process status



or
nagios (pid 2469) is running...
and at the web interface not running


At both nagios does not actually run

Re: lock File - nagios not running

Posted: Thu May 02, 2019 3:54 pm
by npolovenko
Hello, @orani. Does the lock file reappear after you start the nagios process?
service nagios start

Re: lock File - nagios not running

Posted: Thu May 02, 2019 4:31 pm
by orani
No. When i run service nagios start there are no erros but no lock file is created and nagios dont really start

Re: lock File - nagios not running

Posted: Thu May 02, 2019 4:44 pm
by npolovenko
@orani, When did this issue start and what changes were done to the server prior to this?

What's the output of:
service nagios status
Can you show me the output of:
tail -200 /usr/local/nagios/var/nagios.log
Also, please show me the output of the following commands:
cat /etc/rc.d/init.d/nagios | grep NagiosRunFile=
cat /usr/local/nagios/etc/nagios.cfg | grep lock

Re: lock File - nagios not running

Posted: Sat May 04, 2019 12:30 am
by orani
please close this thread. It was a critical issue and we restored our backup so i cannot reply and give more infos about the problem.

Re: lock File - nagios not running

Posted: Mon May 06, 2019 12:36 pm
by scottwilkerson
orani wrote:please close this thread. It was a critical issue and we restored our backup so i cannot reply and give more infos about the problem.
Locking