Wrong status in init.d/nagios when nagios is stopped

Pierre SMOROWINSKI pierre.smorowinski at acoss.fr
Thu Dec 30 10:47:54 CET 2010


Hi all,

I use Nagios 3.2.3, it works prefectly.

If I stop Nagios : 
[root@***]# service nagios stop -> OK

and I check the status :
[root@***]# service nagios status
No lock file found in /hawai/composants/nagios/var/nagios.lock
instead of 
nagios is not running

Into the init script, I see that stopping nagios deletes the lock file, 
and status calls the pid_nagios function, which verifies that the 
nagios.lock file exists.

Is it a bug ?



Pierre SMOROWINSKI
Ingénieur Infrastructures Systèmes & Composants
Pôle National de Rénovation
pierre.smorowinski at acoss.fr
Tél. :
04 93 95 55 60

CNIR SUD - BP 215 - 06904 SOPHIA ANTIPOLIS CEDEX
Contribuons au respect de l'environnement, n'imprimez ce courriel qu'en 
cas de nécessité et ayez le réflexe recto-verso 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101230/0909645c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1096 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101230/0909645c/attachment.gif>
-------------- next part --------------
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list