Bug#324138: [Pkg-nagios-devel] Bug#324138: Acknowledgement (nagios-text: daemon doesn't stop at removal)

2005-08-30 Thread sean finney
On Mon, Aug 29, 2005 at 09:48:45PM +0200, Wolfgang Kohnen wrote:
> 
> [EMAIL PROTECTED]:~# ps -ef | grep nagios
> nagios   23397 1  0 Jul30 ?00:04:00 /usr/sbin/nagios
> /etc/nagios/nagios.cfg
> root 17166 17151  0 21:50 pts/100:00:00 grep nagios
> [EMAIL PROTECTED]:~#
> [EMAIL PROTECTED]:~# sh -x /etc/init.d/nagios stop
> + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> + DAEMON=/usr/sbin/nagios
> + NAME=nagios
> + DESC=nagios
> + NICENESS=5
> + NAMEDPIPE=/var/run/nagios/nagios.cmd
> + PIDFILE=/var/run/nagios/nagios.pid
> + CONFIG=/etc/nagios/nagios.cfg
> + test -f /usr/sbin/nagios
> + export LC_NUMERIC
> + LC_NUMERIC=POSIX
> + set -e
> + echo -n 'Stopping nagios: '
> Stopping nagios: + start-stop-daemon --stop --quiet --pidfile
> /var/run/nagios/nagios.pid --oknodo --exec /usr/sbin/nagios
> + echo nagios.
> nagios.
> + rm -f /var/run/nagios/nagios.pid
> + rm -f /var/run/nagios/nagios.cmd
> + exit 0
> [EMAIL PROTECTED]:~# ps -ef | grep nagios
> nagios   23397 1  0 Jul30 ?00:04:09 /usr/sbin/nagios
> /etc/nagios/nagios.cfg
> root 17189 17151  0 21:51 pts/100:00:00 grep nagios

okay, we may have to hack the init script a bit to find out why it
isn't killing nagios.  could you throw in a 

cat /var/run/nagios/nagios.pid || true

in your script just before calling start-stop-daemon?


sean

-- 


signature.asc
Description: Digital signature


Bug#324138: [Pkg-nagios-devel] Bug#324138: Acknowledgement (nagios-text: daemon doesn't stop at removal)

2005-08-29 Thread Wolfgang Kohnen
He ho!

sean finney schrieb:

>hi wollie,
>
>sorry for the delay getting back to you, i've been on vacation and
>it doesn't look like anyone else is picking up the slack :/
>  
>

NP, kill is my friend. :-)

>btw: you can purge an already removed package with 'dpkg -P'.
>  
>

Ah, yes... I was searching for it, but didn't find it in my hurry...

>is this also on your other production system?  could you send me
>the following in that case?
>
>- ps -ef | grep nagios
>- sh -x /etc/init.d/nagios stop
>
>  
>

Yes, here we go:

[EMAIL PROTECTED]:~# ps -ef | grep nagios
nagios   23397 1  0 Jul30 ?00:04:00 /usr/sbin/nagios
/etc/nagios/nagios.cfg
root 17166 17151  0 21:50 pts/100:00:00 grep nagios
[EMAIL PROTECTED]:~#
[EMAIL PROTECTED]:~# sh -x /etc/init.d/nagios stop
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/nagios
+ NAME=nagios
+ DESC=nagios
+ NICENESS=5
+ NAMEDPIPE=/var/run/nagios/nagios.cmd
+ PIDFILE=/var/run/nagios/nagios.pid
+ CONFIG=/etc/nagios/nagios.cfg
+ test -f /usr/sbin/nagios
+ export LC_NUMERIC
+ LC_NUMERIC=POSIX
+ set -e
+ echo -n 'Stopping nagios: '
Stopping nagios: + start-stop-daemon --stop --quiet --pidfile
/var/run/nagios/nagios.pid --oknodo --exec /usr/sbin/nagios
+ echo nagios.
nagios.
+ rm -f /var/run/nagios/nagios.pid
+ rm -f /var/run/nagios/nagios.cmd
+ exit 0
[EMAIL PROTECTED]:~# ps -ef | grep nagios
nagios   23397 1  0 Jul30 ?00:04:09 /usr/sbin/nagios
/etc/nagios/nagios.cfg
root 17189 17151  0 21:51 pts/100:00:00 grep nagios


Seeya,
Wollie


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#324138: [Pkg-nagios-devel] Bug#324138: Acknowledgement (nagios-text: daemon doesn't stop at removal)

2005-08-28 Thread sean finney
hi wollie,

sorry for the delay getting back to you, i've been on vacation and
it doesn't look like anyone else is picking up the slack :/

On Sat, Aug 20, 2005 at 03:48:58PM +0200, Wolfgang Kohnen wrote:
> I've installed nagios-test, configured it, then removed it and left it
> in that state for some weeks. Today I received notifications from both
> that old installation and another recent and productive installation on
> another host. That was quite confusing to me. The zombie nagios was
> started on Jul 30, that is round about the date, when I removed the
> package. Then I did a new install in order to invoke a --purge which
> didn't change the situation.

sounds like something's fishing with the init script... i'll try and
take a look into it a bit later.  the entire script is a little clunky,
actually, and i may end up re-implementing it.

btw: you can purge an already removed package with 'dpkg -P'.

> Well, now I've inspected the package maintenance scripts
> (/var/lib/dpkg/info/nagios-common.prerm) and it looks perfectly ok. It
> seems to me that /etc/init.d/nagios doesn't work properly, but I don't
> understand why. However, on my system /etc/init.d/nagios stop doesn't do
> anything.

is this also on your other production system?  could you send me
the following in that case?

- ps -ef | grep nagios
- sh -x /etc/init.d/nagios stop


sean

-- 


signature.asc
Description: Digital signature


Bug#324138: Acknowledgement (nagios-text: daemon doesn't stop at removal)

2005-08-20 Thread Wolfgang Kohnen
Hello again,

I think I've been unclear in what I did, though the problem should be clear.

I've installed nagios-test, configured it, then removed it and left it
in that state for some weeks. Today I received notifications from both
that old installation and another recent and productive installation on
another host. That was quite confusing to me. The zombie nagios was
started on Jul 30, that is round about the date, when I removed the
package. Then I did a new install in order to invoke a --purge which
didn't change the situation.

Well, now I've inspected the package maintenance scripts
(/var/lib/dpkg/info/nagios-common.prerm) and it looks perfectly ok. It
seems to me that /etc/init.d/nagios doesn't work properly, but I don't
understand why. However, on my system /etc/init.d/nagios stop doesn't do
anything.

Wollie


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]