Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios lock file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Wed Aug 24, 2005 6:29 pm    Post subject: Nagios lock file Reply with quote

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
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Wed Aug 24, 2005 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Wed Aug 24, 2005 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum