Nagios.lock file not found

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tforestieri
Posts: 2
Joined: Mon Oct 01, 2012 12:45 pm

Nagios.lock file not found

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios.lock file not found

Post 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?
tforestieri
Posts: 2
Joined: Mon Oct 01, 2012 12:45 pm

Re: Nagios.lock file not found

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios.lock file not found

Post by slansing »

What happened to stop the Nagios server? Were any config files written beforehand?
Locked