View previous topic :: View next topic |
Author |
Message |
jmarcus Apprentice
Joined: 12 Jun 2004 Posts: 197
|
Posted: Wed Aug 24, 2005 6:29 pm Post subject: Nagios lock file |
|
|
When I restart nagios, I get this error in the nagios log file.
Code: | Lockfile '/tmp/nagios.lock' is held by PID 0. Bailing out... |
I usally delete the file and then do the restart, does anyone know what permission I need to change to resolve this?
James |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Wed Aug 24, 2005 6:38 pm Post subject: |
|
|
My nagios system doesn't have that file. Your error message is probably refering to a PID (Proccess ID) rather than a problem with perms. To see what program is using the file try doing
Code: | lsof | grep nagios.lock |
|
|
Back to top |
|
|
jmarcus Apprentice
Joined: 12 Jun 2004 Posts: 197
|
Posted: Wed Aug 24, 2005 7:44 pm Post subject: |
|
|
So I did the lsof.
Code: | ncheck nagios # lsof | grep nagios.lock
nagios 6184 nagios 4uW REG 3,3 5 3940858 /tmp/nagios.lock
ncheck nagios # ps -eaf | grep 6184
nagios 6184 1 0 15:02 ? 00:00:00 /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg
root 7334 3867 0 15:41 pts/3 00:00:00 grep 6184
ncheck nagios #
|
Just not sure why the permissions change so that the nagios user can't delete or read the file when restarting nagios? |
|
Back to top |
|
|
|