nagios starting problem

Bill Fears wdfears at gmail.com
Mon Dec 19 21:25:21 CET 2005


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
No lock file found in /usr/local/nagios/var/nagios.lock
as if the shutdown script is looking for the lock which would not be there
if not running
maybe the shutdown script should test if running first


On 12/19/05, Askar Ali <askarali at beaconet.net> wrote:
>
> Marco Ramos wrote:
>
> On Mon, 2005-12-19 at 19:32 +0500, Askar Ali wrote:
>
>
>        however I still *sometime* (not every time) error when stopping
> nagios.
>
> /etc/rc.d/rc.nagios stop
> Stopping network monitor: nagios
> Waiting for nagios to exit .head: cannot open
> `/usr/local/nagios/var/nagios.lock' for reading: No such file or
> directory
>
>  Does this directory have read/write permissions for the user nagios?
>
> HTH,
> Marco Ramos
>
>
>
>    yep,
>
> ls -l
> drwxr-xr-x  3 nagios nagios  328 2005-12-19 19:43 var
>
> and ls -l var
>
> rwxr-xr-x  2 nagios nagios  11528 2005-12-19 14:19 archives
> -rw-r--r--  1 nagios nagios    240 2005-12-19 14:19 comments.dat
> -rw-r--r--  1 nagios nagios    241 2005-12-19 14:19 downtime.dat
> -rw-r--r--  1 nagios nagios      6 2005-12-19 19:41 nagios.lock
> -rw-r--r--  1 nagios nagios 144777 2005-12-19 19:41 nagios.log
> -rw-r--r--  1 nagios nagios 205500 2005-12-19 19:41 objects.cache
> -rw-r--r--  1 nagios nagios 310521 2005-12-19 19:41 retention.dat
> -rw-rw-r--  1 nagios nagios 295578 2005-12-19 19:43 status.dat
>
>
> however even though it gives error on stopping but its do kill the nagios
> process.
>
>
> regards
>
> askar
>
>


--
--------------------------------------------------
     william fears
     williamfears.com
     o(-_-)o
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051219/2ca71654/attachment.html>


More information about the Users mailing list