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 $*"
Monitoring network device which can send SNMP Trap
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Monitoring network device which can send SNMP Trap
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.
Re: Monitoring network device which can send SNMP Trap
Thanks for your reply.
Actually I just followed the instruction from below link.
That why my configuration file becomes snmptt.conf.tv
But it is not working.
Previously I also followed nagios documentation.
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.
Actually I just followed the instruction from below link.
Code: Select all
http://goo.gl/W5nYZ7But it is not working.
Previously I also followed nagios documentation.
Code: Select all
http://goo.gl/kLo0SwI 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.
-
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
If you followed this guide you should have the following at the bottom of snmptt.iniphyolwin wrote:Previously I also followed nagios documentation.Code: Select all
http://goo.gl/kLo0Sw
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
ENDCode: Select all
addmibThis procedure builds the EXEC /usr/local/bin/snmptraphandling.py portion which is what is used to send the data to Nagios XI