Page 1 of 1

Configure SNMP Traps in Nagios?

Posted: Thu Jun 07, 2018 4:49 am
by riahc3
How do I configure SNMP Traps in Nagios?

Ive imported the MIB, set up the trap listener….but….

Re: Configure SNMP Traps in Nagios?

Posted: Fri Jun 08, 2018 2:02 pm
by cdienger
Have you setup snmptt.conf to use a trap handler to send the traps to Nagios for processing? Have you setup and passive checks in Nagios for it? http://askaralikhan.blogspot.com/2010/1 ... agios.html is outdated but has some good information. For example, you can use the trap handler snmptraphandling.py found in http://assets.nagios.com/downloads/supp ... ns.tar.bz2 instead of what they use. The article also covers setting up a passive check.

Re: Configure SNMP Traps in Nagios?

Posted: Sat Jun 09, 2018 1:43 am
by rhassing
There is some information on:
http://mona.deltics.info/snmptrapping/

Re: Configure SNMP Traps in Nagios?

Posted: Mon Jun 11, 2018 10:00 am
by cdienger
Thanks for the additional link, @rhassing.

@riahc3, let us know if you have any further questions for us :)

Re: Configure SNMP Traps in Nagios?

Posted: Fri Jun 15, 2018 8:27 am
by riahc3
Well, the packages in the outdated tutorial are already here: https://assets.nagios.com/downloads/nag ... ios_XI.pdf so....

Anyways…

This is for CentOS 5.....holy shit. Im mean thats old. I cant find the snmptrapd.options file. Seeing as this is a production server, I cant play around and test.

Im not sure why Nagios makes this so difficult to setup.

I use SNMPv3 so I cant disable authorization.

There is a lot outdated in this tutorial...sorry.

Re: Configure SNMP Traps in Nagios?

Posted: Fri Jun 15, 2018 2:06 pm
by tgriep
It shouldn't matter the OS release is in the instructions, the commands should be the same.
Do you have a specific issue you need help on?
Is this a better tutorial?
https://paulgporter.net/2013/09/16/nagios-snmp-traps/