I have installed successfully "NagiosXI-SNMPTrap-setup.sh" and started off by testing traps to the local host (thus excluding firewall rules).
At this stage, all's well with SNMP Traps wizard setup and trap successfully visible in the GUI.
My test were made of sending this test trap from the local host itself:
Code: Select all
snmptrap -v 2c -c <community> 10.192.4.20 '' NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 123456
After that, I tested on a remote Linux machine (the one I need the traps for). I made sure that access is granted by the firewall for UDP port 162.
This proved to be correct as when testing using the same snmptrap command from the remote host, I could see the trap coming into the nagios server from the tcpdump command.
The issue I have is that the trap is not visible in the snmpttunknown.log, nor visible in nagios.log, and thus I don't see it in the GUI, still "Waiting for Trap..."
How can I rectify the issue?
Nagios version is 5.4.13 running on CentOS 6.10.