Page 1 of 1

SNMP Traps integration with Nagios XI

Posted: Fri Dec 15, 2017 9:13 am
by nitin.gupta111
Dear All,

I have to integrate the Network Devices/appliances with Nagios XI using SNMP Traps. Our client is using SNMPv3 with
User name
Authentication Protocol = SHA
Authentication Password
Priviledged Protocol – AES (note Nagios XI supports AES_128 only. Other AES are AES_192 and AES_256).
Privacy Password

I am following following articles and configured accordingly -
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
https://support.nagios.com/kb/article.php?id=77

By following these articles, I found there is no traps arrived from the device, whereas I can see the network traffic generated to nagios XI server. Then I started looking if I need to add the authentication in Nagios XI and found, Nagios xi is using net-snmp for SNMP device monitoring and every device has a unique EngineID. And it has to be added into snmptrapd.conf.

http://www.net-snmp.org/tutorial/tutori ... ap-v3.html

So, I requested to provide the same and added into snmptrapd.conf

Than I asked to generate the Traps, and still not see into Nagios XI. Need Help.

The important point here is, it is working for SNMPv2c, whereas whenever I am converting to SNMPv3, it is not working.

Re: SNMP Traps integration with Nagios XI

Posted: Fri Dec 15, 2017 2:45 pm
by cdienger
Do you see anything in /var/log/snmptt/snmpttunknown.log or /var/log/snmptt/snmptt.log ? Try running:

Code: Select all

snmptrap -e engine_id -v 3 -u username -a SHA -A authpassword -x AES -privpassword -l authPriv localhost 1 0
and then check the logs.

If they are appearing in the unknown log then snmptt.conf will need to be updated to recognize the trap.

Re: SNMP Traps integration with Nagios XI

Posted: Tue Dec 19, 2017 7:01 am
by nitin.gupta111
I am running

snmptrap -e 800000020109840301 -v 3 -u nagios -a SHA -A admin123 -x AES -secure123 -l authPriv localhost 1 0
snmptrap: USM generic error

It is neither coming to snmptt.log nor snmpttunknown.log.

Re: SNMP Traps integration with Nagios XI

Posted: Tue Dec 19, 2017 4:18 pm
by tgriep
If you want to send SNMP v3 traps to Nagios XI, you will have to configure the snmptrapd daemon with the credentials / password / Etc.. so the daemon can receive the traps and pass then to the SNMP Trap Translator.
For instructions on setting up the snmptrapd daemon, take a look at this link.
[user]http://www.net-snmp.org/wiki/index.php/ ... _TRAP_User[/user]

In the section called Real World Examples, the config file is located at

Code: Select all

/etc/snmp/snmptrapd.conf
If you have any questions, post them here.