Monitoring network device which can send SNMP Trap

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring network device which can send SNMP Trap

Post by sreinhardt »

Initial changes or additions that should be made:

snmptt.ini
Mode = daemon
unknown_trap_log_enable = 1
snmptt_conf_files = <<END
/etc/snmp/snmptt.conf.tv
END
(Not sure why your snmptt.conf has the .tv added, but this may be preventing some mib additions from working properly.

snmptrapd.conf
disableAuthorization yes

snmptt.conf.tv (your way may be possible but we recommend using snmptraphandler.py like below for exec lines)
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "The newRoot trap indicates that the sending agent has $*"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
phyolwin
Posts: 10
Joined: Mon Aug 12, 2013 1:50 am

Re: Monitoring network device which can send SNMP Trap

Post by phyolwin »

Thanks for your reply.

Actually I just followed the instruction from below link.

Code: Select all

http://goo.gl/W5nYZ7
That why my configuration file becomes snmptt.conf.tv
But it is not working.

Previously I also followed nagios documentation.

Code: Select all

http://goo.gl/kLo0Sw
I will install new os and make new configuration and let you know.

I didn't understand well about EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "The newRoot trap indicates that the sending agent has $*". Could you explain it a bit more. :D
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring network device which can send SNMP Trap

Post by scottwilkerson »

phyolwin wrote:Previously I also followed nagios documentation.

Code: Select all

http://goo.gl/kLo0Sw
If you followed this guide you should have the following at the bottom of snmptt.ini

Code: Select all

[TrapFiles]
# A list of snmptt.conf files (this is NOT the snmptrapd.conf file).  The COMPLETE path
# and filename.  Ex: '/etc/snmp/snmptt.conf'
snmptt_conf_files = <<END
/usr/share/snmp/mibs/processed_mibs/dcmcuMIB.txt
/etc/snmp/snmptt.conf
END
This document if followed will import current mibs, and you need to add new mibs with the

Code: Select all

addmib
command described in the document.

This procedure builds the EXEC /usr/local/bin/snmptraphandling.py portion which is what is used to send the data to Nagios XI
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked