Page 1 of 1

Nagios.lock file not found

Posted: Mon Oct 01, 2012 1:32 pm
by tforestieri
Our Nagios services will not start up. The error is : No lock file found in /usr/local/nagios/var/nagios.lock.
I can create a blank file, but I don't know the value to populate the file with. Our online monitoring is not working/updating.
I did create a blank file and changed the permission for Nagios, but services will not start

[root@nagiosxi etc]# service nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
[root@nagiosxi etc]# service nagios status
No lock file found in /usr/local/nagios/var/nagios.lock

Re: Nagios.lock file not found

Posted: Mon Oct 01, 2012 1:53 pm
by mguthrie
Can you give us a little bit of background on the system this is on?
Is this a fresh install?
Any recent upgrades?
Have you run a backup and restore recently?

Re: Nagios.lock file not found

Posted: Mon Oct 01, 2012 3:09 pm
by tforestieri
Not a fresh install.
None
None

[root@nagiosxi etc]# service nagios restart
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.

I ran /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg got this error:
Error: Template 'xiwizard_windowsserver_nsclient_service' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/CORP-PROXY.cfg', starting on line 181)
Error processing object config files!

Re: Nagios.lock file not found

Posted: Mon Oct 01, 2012 3:26 pm
by slansing
What happened to stop the Nagios server? Were any config files written beforehand?