hey martin,
manually i can issue command, Only when i killl the parent process, it
can start polling again.
output ps -axf
22243 ? S 0:00 \_ /USR/SBIN/CRON
22245 ? Ss 0:00 \_ /bin/sh -c cd $JFFNMS && $PHP -q
poller2.php master $THREADS >/dev/null 2>&1
22246 ? S 0:00 \_ /usr/bin/php -q poller2.php master
75
4749 ? S 0:00 sh -c /usr/bin/php -q poller2.php - 5
4750 ? S 6:07 \_ /usr/bin/php -q poller2.php - 5
4815 ? Z 0:00 \_ [sh] <defunct>
19798 ? S 1:06 /usr/bin/php -q poller2.php master 75
20785 ? S 0:00 \_ sh -c /usr/bin/php -q poller2.php - 5
20786 ? S 0:04 | \_ /usr/bin/php -q poller2.php - 5
20817 ? Z 0:00 | \_ [sh] <defunct>
20853 ? Z 0:00 \_ [sh] <defunct>
21138 ? Z 0:00 \_ [sh] <defunct>
21140 ? Z 0:00 \_ [sh] <defunct>
21165 ? Z 0:00 \_ [sh] <defunct>
21169 ? Z 0:00 \_ [sh] <defunct>
21173 ? Z 0:00 \_ [sh] <defunct>
21175 ? Z 0:00 \_ [sh] <defunct>
21177 ? Z 0:00 \_ [sh] <defunct>
21201 ? Z 0:00 \_ [sh] <defunct>
21213 ? Z 0:00 \_ [sh] <defunct>
21239 ? Z 0:00 \_ [sh] <defunct>
21241 ? Z 0:00 \_ [sh] <defunct>
21245 ? Z 0:00 \_ [sh] <defunct>
21249 ? Z 0:00 \_ [sh] <defunct>
21253 ? Z 0:00 \_ [sh] <defunct>
21273 ? Z 0:00 \_ [sh] <defunct>
21275 ? Z 0:00 \_ [sh] <defunct>
21279 ? Z 0:00 \_ [sh] <defunct>
21283 ? Z 0:00 \_ [sh] <defunct>
21285 ? Z 0:00 \_ [sh] <defunct>
21575 ? Z 0:00 \_ [sh] <defunct>
21577 ? Z 0:00 \_ [sh] <defunct>
21583 ? Z 0:00 \_ [sh] <defunct>
21585 ? Z 0:00 \_ [sh] <defunct>
21587 ? Z 0:00 \_ [sh] <defunct>
21589 ? Z 0:00 \_ [sh] <defunct>
21591 ? Z 0:00 \_ [sh] <defunct>
21593 ? Z 0:00 \_ [sh] <defunct>
21595 ? Z 0:00 \_ [sh] <defunct>
21607 ? Z 0:00 \_ [sh] <defunct>
21609 ? Z 0:00 \_ [sh] <defunct>
21611 ? Z 0:00 \_ [sh] <defunct>
21613 ? Z 0:00 \_ [sh] <defunct>
21615 ? Z 0:00 \_ [sh] <defunct>
21617 ? Z 0:00 \_ [sh] <defunct>
21637 ? Z 0:00 \_ [sh] <defunct>
22116 pts/1 S 0:00 /usr/bin/php -q poller2.php 37,94 0 0 0
22162 pts/1 S 0:00 \_ sh -c /usr/bin/rrdtool -
22163 pts/1 S 0:00 \_ /usr/bin/rrdtool -
22251 ? S 0:00 /usr/bin/php -q consolidate.php
manually issued : sudo -u jffnms php -q poller2.php
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:55 : H : I 1052 : P LPD : last_poll_date(): 1204360672 ->
db(last_poll_date): 1 (time P: 0.09 | B: 239.39)
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:55 : H : I 493 : P LPD : last_poll_date(): 1204360667 ->
db(last_poll_date): 1 (time P: 0.08 | B: 4.23)
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:55 : H 38,108 : Poller End, Total Time: 11287 msec.
.............
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:58 : H 94 : I 999 : P 15 :
snmp_counter:tcp_established(.1.3..9.0): -> buffer(): 23 (time P: 6046.84
| B: 0.15)
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:58 : H 37 : I 479 : P 16 : interface_oper_status(8): up ->
alarm(3,,180): Nothing was done (time P: 120.42 | B: 1.27)
.
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:59 : H 37 : I 480 : P 16 : interface_oper_status(8): up ->
alarm(3,,180): Nothing was done (time P: 65.75 | B: 1.07)
Warning: fopen(/opt/jffnms/logs/poller2-2008-03-01.log): failed to open
stream: Permission denied in /opt/jffnms/lib/api.inc.php on line 20
Warning: fputs(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in
/opt/jffnms/lib/api.inc.php on line 22
09:37:59 : H 37 : I 481 : P 16 : interface_oper_status(8): up ->
alarm(3,,180): Nothing was done (time P: 60.43 | B: 1.02)
Martin Beecroft <[EMAIL PROTECTED]>
28/02/2008 18:50
To
[EMAIL PROTECTED]
cc
jffnms-users@lists.sourceforge.net
Subject
Re: [jffnms-users] Fw: [sh] <defunct>
Hi Johan,
this sounds like the poller isn't exiting correctly and leaving a
defunct shell running. Have you upgraded anything recently? Could you
run a "ps axf" and send the output to the list?
Also it could be worth trying to run the poller manually as the jffnms
user and see what the output is like, try "sudo -u jffnms php -q
poller2.php".
Cheers
Martin
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> Anybody ? Please ? Those [sh] <defunct> -messages, prevent from
> polling, and happens every 2 days.
>
> Greetings,
> Johan
> ----- Forwarded by Johan Boeckx/EU/WTG/PENTAIR on 28/02/2008 14:20 -----
>
> [EMAIL PROTECTED] wrote on 25/02/2008 10:31:26:
>
> >
> > Hi,
> >
> > I am running jffnms on debian server, and since a week i have
> > problem with stopping processes, meaning no polling is done anymore
> > : it suddenly stops. The cron keeps running. This is what I see in
> the logs :
> > Anybody knows what is [sh] <defunct> ?
> > www-data 22901 1 0 05:02 ? 00:00:10 /usr/bin/php -q
> > poller2.php mast
> > www-data 23404 22901 0 05:08 ? 00:00:00 sh -c /usr/bin/php -
> > q poller2.ph
> > www-data 23405 23404 0 05:08 ? 00:00:16 /usr/bin/php -q
> > poller2.php - 5
> > www-data 23406 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23408 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23418 23405 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23426 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23428 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23430 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23432 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23434 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23436 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23438 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23454 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23458 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23468 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23470 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23472 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23474 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23476 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23512 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23514 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23516 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23518 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23522 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23524 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23526 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23528 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23550 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23556 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23561 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23563 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23565 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23567 22901 0 05:08 ? 00:00:00 [sh] <defunct>
> > www-data 23569 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23587 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23589 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23591 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23593 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23595 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23597 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23599 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23601 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23603 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23605 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23607 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23609 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23611 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23613 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23615 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23617 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23619 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23621 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23623 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23625 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> > www-data 23627 22901 0 05:09 ? 00:00:00 [sh] <defunct>
> >
> > Greetz,
> > Johan
> >
______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit http://www.messagelabs.com/email
> >
______________________________________________________________________
> >
-------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > jffnms-users mailing list
> > jffnms-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jffnms-users
>
>
> ------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jffnms-users mailing list
> jffnms-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users