Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Mango - Howto Test SNMP Traps
-
Ensure that there is no other SNMP Trap service running on the Mango server except Mango SNMP Trap.
You can see this on a Linux system by executing the following command.
netstat -unatp |grep udp
udp 0 0 :::162 :::* 18938/java
There should be a UDP port listening on 162 and should be bound to java
-
Create a SNMP Data Source
-
Download TrapGen.exe from http://www.wtcs.org/informant/free_snmp_tools.htm
-
Create Trap Gen Command and note down the OID (-v .1.3.1.4.1.2854.1.2)
TrapGen.exe -d x.x.x.x -o .1.3.1.4.1.2854 -v .1.3.1.4.1.2854.1.2 INTEGER 20
Note : x.x.x.x ( Mango server IP Address)
-
Configure a Data Point with a SNMP Trap OID (.1.3.1.4.1.2854.1.2)
-
Execute the TrapGen command
TrapGen.exe -d x.x.x.x -o .1.3.1.4.1.2854 -v .1.3.1.4.1.2854.1.2 INTEGER 20
- You should see the Trap received in Watchlist.
Note : Incase if the SNMP OID is not configured as in the trapgen command check the mango log file and you should see a warning like the one below.
/mango/apache-tomcat-6.0.20/logs/mango.log:WARN 2009-10-08 09:31:24,070 (com.serotonin.mango.rt.dataSource.snmp.SnmpDataSourceRT.receivedTrap:236) - Trap not handled: 1.3.1.4.1.2854.2.2 = 200
-