Re: Traps delivered to Nagios from device but not shown in G
Posted: Tue Mar 26, 2019 1:43 am
Hi ssax
PMed you the zip file.
With thanks
PMed you the zip file.
With thanks
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
service snmptrapd statusCode: Select all
[root@am1nms-nagiosxi ~]# service snmptrapd status
snmptrapd (pid 2236) is running...
Code: Select all
service snmptrapd restart
service snmptt restartCode: Select all
tail -Fn0 /var/log/messages /var/log/snmptt/*Code: Select all
snmptrap -v 2c -c public 192.168.X.X '' NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 123456Code: Select all
==> /var/log/messages <==
Mar 27 10:45:25 xid snmptrapd[4677]: 2019-03-27 10:45:25 <UNKNOWN> [UDP: [192.168.X.X]:35394->[192.168.X.X]:162]:#012DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42687119) 4 days, 22:34:31.19#011SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification#011NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatRate = INTEGER: 123456
==> /var/log/snmptt/snmptt.log <==
Wed Mar 27 10:45:25 2019 .1.3.6.1.4.1.8072.2.3.0.1 Normal "netSnmpExampleHeartbeatRate" 192.168.X.X - SNMP netSnmpExampleHeartbeatRate
==> /var/log/messages <==
Mar 27 10:45:28 xid snmptt[4706]: .1.3.6.1.4.1.8072.2.3.0.1 Normal "netSnmpExampleHeartbeatRate" 192.168.X.X - SNMP netSnmpExampleHeartbeatRate
Mar 27 10:45:28 xid nagios: Warning: Passive check result was received for service 'SNMP Traps' on host '192.168.X.X', but the host could not be found!
Mar 27 10:45:28 xid nagios: Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;192.168.X.X;SNMP Traps;0;netSnmpExampleHeartbeatRate
Mar 27 10:45:28 xid nagios: External command error: Command failed