Hi to all,
I have a problem with the snmptrapd! It runs fine as long as there is no snmptrapd.conf activated. (Only on Linux!)
1. I've put the snmptrapd into the '/usr/local/share/snmp' folder, where it is found by the daemon (I checked this with strace).
2. The only line in this file is 'traphandle default /home/myuser/CProg'. CProg is a C++ Program that reads the Trap stuff from cin and is doing some other stuff. I can feed my CProg with some dummy data via 'CProg < dummy.txt'. So I assume, that the CProg itself should be OK. For the CProg I use the same code like under Windows - where I have no Problems at all.
3. Using 'strace -o myfile.txt ./snmptrapd -f -Le' delivers a SIGPIPE and after this the daemon dies.
My environment is:
Win XP, net-SNMP 5.1.2 (everything works fine!)
SuSE Linux SLES 9, net-SNMP 5.1.2 (has problems with snmptrapd)
I've seen a discussion for version 5.2.1 in the archive but it seem to be the same problem. Is it possible that this is a bug that naps in the code since earlier versions? Is it necessary, that I use something like '/bin/bash' in the conf-file?
Any help is really welcome and thanks in advance!
Mit freundlichen Gruessen, best regards Norbert Frick
- snmptrapd 5.1.2 dies when the conf file is aktive Norbert Frick