Hi guys ! I`m trying to receive SNMP traps with Nagios and snmptt , but I have some problems, and I don't know what to do. Nagios Core 3.4.1 , installed on CentOS 6.3 . Net-snmp, snmptt, net-snmp-perlmod are installed also . Successfully converted mib file for host that I want to monitor, and converted snmptt.conf.host file has path to submit_check_results eventhandler . Now, snmptt receive the snmp trap from host, and everything is ok, but Nagios never get that trap. Nagios service for that host and that trap, is configured ok, because when I execute
Code: Select all
/usr/lib/nagios/plugins/eventhandlers/submit_check_result $r TRAP 1 “Some Text “
from console, Nagios get that trap, and everything is OK . That test working with
also . Snmptt is member of nagios group. Snmptt log has no errors . According snmptt log, snmptt process the trap , and execute
Code: Select all
/usr/lib/nagios/plugins/eventhandlers/submit_check_result $r TRAP 1
and that is it . No traps in Nagios . I'm also changed #!/bin/sh with #!/bin/bash , because I find that solution in some forums, but with no luck at all .
Can anyone help me. Thanks in advance.