I have noticed that if nagios is not running and you try to stop ie you thought is was running you will get the error<br>No lock file found in /usr/local/nagios/var/nagios<div id="mb_6">.lock<br>as if the shutdown script is looking for the lock which would not be there if not running
<br>maybe the shutdown script should test if running first</div><br><br><div><span class="gmail_quote">On 12/19/05, <b class="gmail_sendername">Askar Ali</b> <<a href="mailto:askarali@beaconet.net">askarali@beaconet.net
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marco Ramos wrote:
<blockquote cite="http://mid1135003252.3841.9.camel@localhost.localdomain" type="cite"><span class="q">
<pre>On Mon, 2005-12-19 at 19:32 +0500, Askar Ali wrote:<br><br> </pre>
<blockquote type="cite">
<blockquote type="cite">
<pre> <br> </pre>
</blockquote>
<pre>however I still *sometime* (not every time) error when stopping<br>nagios.<br><br>/etc/rc.d/rc.nagios stop<br>Stopping network monitor: nagios<br>Waiting for nagios to exit .head: cannot open<br>`/usr/local/nagios/var/nagios.lock' for reading: No such file or
<br>directory<br> </pre>
</blockquote>
<pre>Does this directory have read/write permissions for the user nagios?<br><br>HTH,<br>Marco Ramos<br><br><br><br> </pre></span>
</blockquote>
yep,<br>
<br>
ls -l <br>
drwxr-xr-x 3 nagios nagios 328 2005-12-19 19:43 var<br>
<br>
and ls -l var<br>
<br>
rwxr-xr-x 2 nagios nagios 11528 2005-12-19 14:19 archives<br>
-rw-r--r-- 1 nagios nagios 240 2005-12-19 14:19 comments.dat<br>
-rw-r--r-- 1 nagios nagios 241 2005-12-19 14:19 downtime.dat<br>
-rw-r--r-- 1 nagios nagios 6 2005-12-19 19:41 nagios.lock<br>
-rw-r--r-- 1 nagios nagios 144777 2005-12-19 19:41 nagios.log<br>
-rw-r--r-- 1 nagios nagios 205500 2005-12-19 19:41 objects.cache<br>
-rw-r--r-- 1 nagios nagios 310521 2005-12-19 19:41 retention.dat<br>
-rw-rw-r-- 1 nagios nagios 295578 2005-12-19 19:43 status.dat<br>
<br>
<br>
however even though it gives error on stopping but its do kill the
nagios process.<br>
<br>
<br>
regards<br><span class="sg">
<br>
askar<br>
<br>
</span></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------<br> william fears<br> <a href="http://williamfears.com">williamfears.com</a><br> o(-_-)o<br>--------------------------------------------------