Page 1 of 1

SNMP Trap Issue

Posted: Tue Jan 24, 2017 3:55 am
by ericssonvietnam
Hi Team,

Please sugggest we are getting below error message while sending snmp trap:


snmptrap -v 2c -c public 10.10.164.115 '' netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 123456
No log handling enabled - turning on stderr logging
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
netSnmpExampleHeartbeatNotification: Unknown Object Identifier (Sub-id not found: (top) -> netSnmpExampleHeartbeatNotification)

Re: SNMP Trap Issue

Posted: Tue Jan 24, 2017 9:48 am
by avandemore
If you are following https://assets.nagios.com/downloads/nag ... ios_XI.pdf
please reading the entire section. It's not supposed to work:
Now that you've sent the test trap, you should check a few things to make sure its all working. The specific trap that was sent DOES
NOT exist in the
snmptt.conf
file, hence it will be logged in the file /var/log/snmptt/snmpttunknown.log
If the trap is not in /var/log/snmptt/snmpttunknown.log then you have an issue.