Page 2 of 2

Re: Monitoring network device which can send SNMP Trap

Posted: Thu Sep 26, 2013 10:32 am
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 $*"

Re: Monitoring network device which can send SNMP Trap

Posted: Wed Oct 02, 2013 12:59 am
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

Re: Monitoring network device which can send SNMP Trap

Posted: Wed Oct 02, 2013 2:15 pm
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