Hi Thanks, this fixed the same issue I had on a Gentoo running Net-SNMP 5.2.1 and JFFNMS v0.8.1, only thing I had to differently was to do sudo to apache user, my traphandle.sh is like this:
#!/bin/bash cd /opt/jffnms/engine/ sudo -u apache php -q /opt/jffnms/engine/trap_receiver.php Kind Regards Stefan Thor Hreinsson Basis -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 15. mars 2005 20:29 To: [email protected] Subject: [jffnms-users] SNMPTrapd Broken Pipe (solution) Hi all, I don't know if snmptrapd issue is already fixed, but here you have a solution: The problem: ========= Few days ago I'd installed JFFNMS v0.8.1 (for *nix) with SNMPTrap support (Net-SNMP v5.1.2). Unfortunately whenever snmptrapd received a trap it goes down with a message "Broken Pipe", not saving any trap messaje in DB. The problem seems to be caused because daemon is not able to read "/etc/snmp/snmptrapd.conf" file properly (snmptrapd.conf documentation seems to be wrong): The solution: ========= 1.- Create the file "/opt/jffnms/engine/trapshandler.sh" with this content: #!/usr/bin/bash cd /opt/jffnms/engine && php -q trap_receiver.php 2.- Modify the file "/etc/snmp/snmptrapd.conf" and leave it as (just 1 line): traphandle default /bin/bash /opt/jffnms/engine/traphandler.sh Saludos -- Yery ------------------------------------------------------- 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 _______________________________________________ jffnms-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jffnms-users ------------------------------------------------------- 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_ide95&alloc_id396&op=click _______________________________________________ jffnms-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jffnms-users
