Need some help in getting SNMP to work in Nagios XI. The traps are making it to my server but just not populating in the event view under 'snmp traps'. Any ideas?
Attaching some info that maybe useful:
Code: Select all
rpm -qa | grep snmp
snmptt-1.4-0.9.beta2.el6.noarch
net-snmp-perl-5.5-49.el6_5.1.x86_64
php-snmp-5.4.25-1.el6.remi.x86_64
net-snmp-utils-5.5-49.el6_5.1.x86_64
net-snmp-libs-5.5-49.el6_5.1.x86_64
net-snmp-5.5-49.el6_5.1.x86_64
Code: Select all
ls -lva /usr/local/bin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root nagios 804 Mar 31 13:49 addmib
-rwxr-xr-x 1 root root 2078 Mar 31 13:49 snmptraphandling.py
-rwxr-xr-x 1 root root 30438 Mar 31 13:49 snmpttconvertmibCode: Select all
sudo cat /etc/snmp/snmptrapd.conf
disableAuthorization yes
traphandle default /usr/sbin/snmptthandler
Code: Select all
rep -i 'daemon_uid\|mode =' /etc/snmp/snmptt.ini
mode = daemon
description_mode = 0
# A second (child) process will be started as the daemon_uid user so
daemon_uid = snmptt
Code: Select all
grep -i -m 5 'exec' /etc/snmp/snmptt.conf
#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"
Code: Select all
grep -i 'nag' /etc/group
nagios:x:10011:nagios,apache,snmptt
nagcmd:x:40060:nagios,apache,snmptt
Code: Select all
grep -i 'snmp' /etc/group
nagios:x:10011:nagios,apache,snmptt
nagcmd:x:40060:nagios,apache,snmptt
snmptt:x:497:
Code: Select all
ll /var/log/snmptt/
total 460
-rw-rw-r-- 1 snmptt root 6407 Apr 2 16:22 snmptt.log
-rw-rw-r-- 1 snmptt snmptt 0 Apr 1 03:45 snmpttsystem.log
-rw-rw-r-- 1 snmptt snmptt 238 Feb 18 13:58 snmpttsystem.log-20140223
-rw-rw-r-- 1 snmptt snmptt 238 Mar 18 14:03 snmpttsystem.log-20140319
-rw-rw-r-- 1 snmptt snmptt 410 Mar 31 13:49 snmpttsystem.log-20140401
-rw-rw-r-- 1 snmptt snmptt 42015 Apr 3 08:50 snmpttunknown.log
-rw-rw-r-- 1 snmptt snmptt 52036 Feb 24 05:33 snmpttunknown.log-20140302
-rw-rw-r-- 1 snmptt snmptt 27749 Mar 19 00:32 snmpttunknown.log-20140319
-rw-rw-r-- 1 snmptt snmptt 109586 Mar 23 00:52 snmpttunknown.log-20140323
-rw-rw-r-- 1 snmptt snmptt 191153 Mar 30 01:27 snmpttunknown.log-2014033Code: Select all
drwxrwxr-x 2 snmptt snmptt 4096 Apr 1 03:45 /var/log/snmptt/
Code: Select all
ll /var/spool/snmptt/
total 0
Code: Select all
ll -d /var/spool/snmptt/
drwxrwxr-x 2 snmptt snmptt 4096 Apr 3 08:50 /var/spool/snmptt/