# rpm -qa | grep snmp
Code: Select all
net-snmp-utils-5.5-49.el6_5.1.x86_64
snmptt-1.4-0.9.beta2.el6.noarch
net-snmp-libs-5.5-49.el6_5.1.x86_64
net-snmp-perl-5.5-49.el6_5.1.x86_64
net-snmp-5.5-49.el6_5.1.x86_64
php-snmp-5.3.3-27.el6_5.x86_64
So running snmptt-1.4-0.9.beta2.el6.noarch
# ls -lva /usr/local/bin/ | grep -i 'snmp\|addmib'
Code: Select all
-rwxr-xr-x 1 root nagios 804 Apr 3 12:09 addmib
-rwxr-xr-x 1 root root 2078 Apr 3 12:09 snmptraphandling.py
-rwxr-xr-x 1 root root 30438 Apr 3 12:09 snmpttconvertmib
No bins matching in /usr/local/sbin
# ls -lva /usr/sbin | grep -i 'snmp\|addmib'
Code: Select all
-rwxr-xr-x. 1 root root 30744 Mar 6 12:51 snmpd
-rwxr-xr-x. 1 root root 30776 Mar 6 12:51 snmptrapd
-rwxr-xr-x 1 root root 177466 Oct 22 2012 snmptt
-rwxr-xr-x 1 root root 6493 Oct 22 2012 snmptthandler
# cat /etc/snmp/snmptrapd.conf
Code: Select all
disableAuthorization yes
traphandle default /usr/sbin/snmptthandler
# grep -i 'daemon_uid\|mode =' /etc/snmp/snmptt.ini
Code: Select all
mode = daemon
description_mode = 0
# A second (child) process will be started as the daemon_uid user so
daemon_uid = snmptt
# grep -i 'exec' /etc/snmp/snmptt.conf | tail -n 10
Code: Select all
#EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)"
#EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)"
#EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3"
#EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3"
#EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure"
# grep -i 'nag' /etc/group
Code: Select all
nagios:x:501:nagios,apache,snmptt
nagcmd:x:502:nagios,apache,snmptt
# grep -i 'snmp' /etc/group
Code: Select all
nagios:x:501:nagios,apache,snmptt
nagcmd:x:502:nagios,apache,snmptt
snmptt:x:489:
# ll /var/log/snmptt/
Code: Select all
total 36
-rw-rw-r-- 1 snmptt snmptt 8252 Apr 3 14:07 snmptt.log
-rw-rw-r-- 1 snmptt snmptt 4679 Apr 3 13:52 snmpttsystem.log
-rw-rw-r-- 1 snmptt root 13863 Apr 3 13:58 snmpttunknown.log
# ll -d /var/log/snmptt/
Code: Select all
drwxrwxr-x 2 snmptt snmptt 4096 Apr 3 12:19 /var/log/snmptt/
# ll /var/spool/snmptt
# ll -d /var/spool/snmptt
Code: Select all
drwxrwxr-x 2 snmptt snmptt 4096 Apr 3 14:07 /var/spool/snmptt
# tail /var/log/snmptt/snmptt.log
Code: Select all
Thu Apr 3 14:13:34 2014 .1.3.6.1.6.3.1.1.5.3 Critical "Status Events" testswitch - Link down on interface 10101. Admin state: GigabitEthernet1/0/1. Operational state: ethernetCsmacd
Thu Apr 3 14:13:49 2014 .1.3.6.1.6.3.1.1.5.4 Normal "Status Events" testswitch - Link up on interface 10101. Admin state: GigabitEthernet1/0/1. Operational state: ethernetCsmacd
In Nagios, the device had a domain at the end of it and I noticed in the log above it didn't, so I renamed the device in Nagios and that didn't fix it. I also added in the snmptt.ini the domains to strip just in case.