Hi,

This bug is currently closed but I have experience the same as the bug reporter and I can reproduce the problem.
I have posted comments to the bug entry including work around. (See below)


I don't think this is related to bug 930993 because I have applied the change to the source on ver 5.1 suggested in the bug's comment and the problem still occurs.

Many thanks
Joe

----------------------------------------------------------------------------------

Comment By: Joe (joekuan)
Date: 2005-03-09 16:31

Message:
Logged In: YES user_id=1235842


I agree with cfmartin. The problem does exist, even I invoke
the script /etc/init.d/snmptrapd, not from inittab.

You don't see the problem probably because u do
/etc/init.d/snmptrapd start FROM COMMAND LINE.

We have a daemon running and calls /etc/init.d/snmptrapd to
start, it immediately consumes over 90% CPU and floods the
log file with repeating messages:

Connection from callback: 1 on fd 2
pdu failed to be created

The log file accumulates 1 GB per day.

The daemon is programmed in C and calls
system('/etc/init.d/snmptrapd start').

The problem disappears if you do /etc/init.d/snmptrapd start
from command line.

Our system is running SUSE (SLES) 9.1 with net-snmp-5.1-80.11.

I have also tested with building from 5.1 source.

----------------------------------------------------------------

Comment By: Joe (joekuan)
Date: 2005-03-09 16:56

Message:
Logged In: YES user_id=1235842


Gotcha!!!!!

One of the difference between command line and invoked from
another programme is the fd 0 1 2.

If you change your snmptrapd init script of line

 startproc $SNMPTRAPD -c /etc/snmptrapd.conf -Lf
/var/log/net-snmptrapd.log

to

startproc $SNMPTRAPD -c /etc/snmptrapd.conf -Lf
/var/log/net-snmptrapd.log > /dev/null 2>&1

The problem disappears.








Test Drive Itheon Network Emulator at the Enterprise Networks Road Show 2005 http://www.itheon.com/news/events.htm

Responsible for Application Roll-outs & Pre-deployment Testing? - Itheon 
Network Emulator can help
http://www.itheon.com/news/press_04_09_14.htm

Itheon offers Application Performance & Quality of Service Monitoring
http://www.itheon.com/products/iam_qos.htm


****************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept for the presence of viruses using SOPHOS.

http://www.itheon.com
******************************************************************



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to