snmp traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

snmp traps

Post by progressive.nagiosXI »

Hi ,

we have some devices which need to monitor but problem is only snmp traps are available.

Devices Type are IBM SanSwitch and Linux appliances(customised Linux).

Problem :-
1) we are currently monitor that client environment via Gearman worker Server(everything working fine).
2) Currently using SNMP polling ,NCPA listener in that environment and getting data from that environment to gearman-worker-server(infra) then worker-server to master-server(Azure cloud). >> Active Monitoring ok.
3) How to transfer these devices traps data to gearman-worker-server(on-Prem/Infra) then to Gearman-master-server(on Azure) . >> need help in passive monitoring via gearman.

Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: snmp traps

Post by tgriep »

The simplest way is if you can allow inbound port 162 UDP traffic to the Nagios server and setup the devices to use SNMP version 3 to encrypt the data, that will allow the XI server to use the SNMP Trap Interface tool to receive the traps that the Nagios server uses to generate Alerts and Notifications.

A Mod Gearman worker does not have the ability to receive SNMP Traps and then forward them on to the Nagios server so you would have to develop something to do that.

You could install the net-snmp and the snmptt packages on the worker and set that up to receive SNMP Traps.
See the following for instructions.
http://www.snmptt.org/
http://snmptt.sourceforge.net/docs/snmptt.shtml
http://www.net-snmp.org/docs/man/snmptrapd.conf.html

You would have to add all of the MIB files for the devices that are sending the traps in to the snmptt.conf file and verify that the snmptt daemon is receiving them and then can process them.
This is the tool you would use to add the MIB information to the snmptt daemons configuration file.
http://www.snmptt.org/docs/snmpttconvertmib.shtml

Then you have to create an EXEC line in the /etc/snmp/snmptt.conf file for the OID data that you want to use the send_gearman command to send the received traps through gearman to the Nagios server.

Code: Select all

EXEC /usr/bin/send_gearman --server=nagiosxiserverIP --encryption=yes --key=should_be_changed --host="$r" --service="SNMP Traps" --message="$*" --returncode="$s"
This will get you some data in to the XI server but you will have manually create all of the Hosts in the Core Config Manager that are sending traps in XI and the services for all of the devices as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked