Page 2 of 3
Re: snmp traps
Posted: Mon Jun 09, 2014 1:06 pm
by hanya.radwan
the results of the commands:
[root@nms ~]# ll /var/spool/snmptt/ | wc -l
205221
You have mail in /var/spool/mail/root
[root@nms ~]#
[root@nms ~]# ll -t /var/spool/snmptt | tail -20
-rw-r--r-- 1 root root 498 Jun 5 10:39 #snmptt-trap-1401953999174897
-rw-r--r-- 1 root root 510 Jun 5 10:39 #snmptt-trap-1401953994078336
-rw-r--r-- 1 root root 510 Jun 5 10:39 #snmptt-trap-1401953991437241
-rw-r--r-- 1 root root 472 Jun 5 10:39 #snmptt-trap-1401953991246641
-rw-r--r-- 1 root root 472 Jun 5 10:39 #snmptt-trap-1401953991046039
-rw-r--r-- 1 root root 473 Jun 5 10:39 #snmptt-trap-1401953990813643
-rw-r--r-- 1 root root 509 Jun 5 10:39 #snmptt-trap-1401953990502630
-rw-r--r-- 1 root root 506 Jun 5 10:39 #snmptt-trap-1401953990222957
-rw-r--r-- 1 root root 510 Jun 5 10:39 #snmptt-trap-1401953990048666
-rw-r--r-- 1 root root 498 Jun 5 10:39 #snmptt-trap-1401953989861861
-rw-r--r-- 1 root root 479 Jun 5 10:39 #snmptt-trap-1401953989637311
-rw-r--r-- 1 root root 482 Jun 5 10:39 #snmptt-trap-1401953989328120
-rw-r--r-- 1 root root 481 Jun 5 10:39 #snmptt-trap-1401953988810795
-rw-r--r-- 1 root root 509 Jun 5 10:39 #snmptt-trap-1401953987910472
-rw-r--r-- 1 root root 512 Jun 5 10:39 #snmptt-trap-1401953987163991
-rw-r--r-- 1 root root 511 Jun 5 10:39 #snmptt-trap-1401953980718218
-rw-r--r-- 1 root root 510 Jun 5 10:39 #snmptt-trap-1401953956252878
-rw-r--r-- 1 root root 509 Jun 5 10:39 #snmptt-trap-1401953948500433
-rw-r--r-- 1 root root 512 Jun 5 10:39 #snmptt-trap-1401953941879753
-rw-r--r-- 1 root root 511 Jun 5 10:38 #snmptt-trap-1401953934572774
Re: snmp traps
Posted: Mon Jun 09, 2014 1:50 pm
by sreinhardt
Those permissions are not correct for how our script should set it up, please run the following:
Versions installed
Looking for bins:
Code: Select all
ls -lva /usr/local/bin | grep -i 'snmp\|addmib'
ls -lva /usr/local/sbin | grep -i 'snmp\|addmib'
ls -lva /usr/sbin | grep -i 'snmp\|addmib'
snmptt\trapd settings and user perms:
Code: Select all
grep -i 'daemon_uid\|mode =' /etc/snmp/snmptt.ini
grep -i 'exec' /etc/snmp/snmptt.conf | tail -n 10
grep -i 'nag' /etc/group
grep -i 'snmp' /etc/group
Checking log and spool dirs:
Code: Select all
ll /var/log/snmptt/
ll -d /var/log/snmptt/
ll /var/spool/snmptt
ll -d /var/spool/snmptt
Re: snmp traps
Posted: Mon Jun 09, 2014 2:23 pm
by hanya.radwan
Code: Select all
Versions installed;
[root@nms ~]# rpm -qa | grep snmp
net-snmp-5.5-49.el6_5.1.x86_64
net-snmp-utils-5.5-49.el6_5.1.x86_64
snmptt-1.3-3.nagios.noarch
php-snmp-5.3.3-27.el6_5.x86_64
net-snmp-libs-5.5-49.el6_5.1.x86_64
net-snmp-perl-5.5-49.el6_5.1.x86_64
Looking for bins:
[root@nms ~]# ls -lva /usr/local/bin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root root 879 Jun 13 2013 addmib
-rwxrw-rw- 1 root root 1321 Jul 4 2013 addmib.nms
-rwxr-xr-x 1 root root 804 Jun 13 2013 addmib.orig
-rwxr-xr-x 1 root root 3601 Jul 14 2013 snmptraphandling.py
-rwxr-xr-x 1 root root 3381 Jul 10 2013 snmptraphandling.py.nms
-rwxr-xr-x 1 root root 2078 Jul 10 2013 snmptraphandling.py.orig
-rwxr-xr-x 1 root root 30775 Sep 15 2013 snmpttconvertmib
-rwxr-xr-x 1 root root 30438 Sep 15 2013 snmpttconvertmib.1.3
-rwxr-xr-x 1 root root 30775 Sep 15 2013 snmpttconvertmib.1.4_2beta
[root@nms ~]# ls -lva /usr/local/sbin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root root 177466 Sep 15 2013 snmptt
-rwxr-xr-x 1 root root 6488 Nov 1 2012 snmptthandler
-rwxr-xr-x 1 root root 177466 Sep 15 2013 snmptt.1.3
-rwxr-xr-x 1 root root 177466 Sep 15 2013 snmptt.1.4_2beta
[root@nms ~]# ls -lva /usr/sbin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root root 30744 Mar 24 20:11 snmpd
-rwxr-xr-x 1 root root 30776 Mar 24 20:11 snmptrapd
snmptt\trapd settings and user perms:
[root@nms ~]# grep -i 'daemon_uid\|mode =' /etc/snmp/snmptt.ini
mode = daemon
description_mode = 1
# A second (child) process will be started as the daemon_uid user so
daemon_uid = snmptt
[root@nms ~]# grep -i 'exec' /etc/snmp/snmptt.conf | tail -n 10
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New device detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing controller changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing device changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Self-Monitoring Warning (predictive failure - data recovery possible) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Self-Monitoring Warning (predictive failure - data recovery questionable) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Storage Controller Error (not responding) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New Storage controller detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New device detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing controller changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing device changed $*"
[root@nms ~]# grep -i 'nag' /etc/group
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache
[root@nms ~]# grep -i 'snmp' /etc/group
snmptt:x:496:
Checking log and spool dirs:
[root@nms ~]# ll /var/log/snmptt/
total 9524972
-rw-r--r-- 1 snmptt root 2274963222 Jun 9 22:13 snmptt.debug
-rw-r--r-- 1 snmptt root 17654937 Jun 4 04:42 snmptt.debug-20140604
-rw-r--r-- 1 snmptt root 2618039525 Jun 6 03:09 snmptt.debug-20140606
-rw-r--r-- 1 snmptt root 2598377876 Jun 6 19:27 snmptt.debug-20140607
-rw-r--r-- 1 snmptt root 2108311943 Jun 9 03:33 snmptt.debug-20140609
-rw-r--r-- 1 root root 53147408 Jun 9 22:13 snmptthandler.debug
-rw-r--r-- 1 root root 20923225 Jun 6 03:08 snmptthandler.debug-20140606
-rw-r--r-- 1 root root 60875791 Jun 8 03:50 snmptthandler.debug-20140608
-rw-r--r-- 1 root root 228548 Jun 9 11:08 snmpttsystem.log
-rw-r--r-- 1 root root 80664 Jun 3 15:12 snmpttsystem.log-20140604
-rw-r--r-- 1 root root 793196 Jun 6 18:46 snmpttsystem.log-20140608
[root@nms ~]# ll -d /var/log/snmptt/
drwxr-xr-x 2 root root 4096 Jun 9 03:33 /var/log/snmptt/
[root@nms ~]# ll -d /var/spool/snmptt
drwxrwxrwx 2 root root 12136448 Jun 9 22:20 /var/spool/snmptt
this is part of the result of the following command , it returns trps from 5 jun, 6 jun, 7 jun, 8 jun, 9 june;
-rw-r--r-- 1 root root 509 Jun 9 22:20 #snmptt-trap-1402341635204260
-rw-r--r-- 1 root root 497 Jun 9 22:20 #snmptt-trap-1402341636322016
-rw-r--r-- 1 root root 505 Jun 9 22:20 #snmptt-trap-1402341637940746
-rw-r--r-- 1 root root 480 Jun 9 22:20 #snmptt-trap-1402341638140006
-rw-r--r-- 1 root root 481 Jun 9 22:20 #snmptt-trap-1402341638298798
-rw-r--r-- 1 root root 478 Jun 9 22:20 #snmptt-trap-1402341638401890
-rw-r--r-- 1 root root 509 Jun 9 22:20 #snmptt-trap-1402341640266370
-rw-r--r-- 1 root root 510 Jun 9 22:20 #snmptt-trap-1402341642181099
-rw-r--r-- 1 root root 472 Jun 9 22:20 #snmptt-trap-1402341645913940
-rw-r--r-- 1 root root 473 Jun 9 22:20 #snmptt-trap-1402341651989700
-rw-r--r-- 1 root root 473 Jun 9 22:20 #snmptt-trap-1402341652103313
-rw-r--r-- 1 root root 509 Jun 9 22:20 #snmptt-trap-1402341655081600
-rw-r--r-- 1 root root 476 Jun 9 22:20 #snmptt-trap-1402341656029003
-rw-r--r-- 1 root root 505 Jun 9 22:20 #snmptt-trap-1402341656996502
-rw-r--r-- 1 root root 505 Jun 9 22:20 #snmptt-trap-1402341658531456
-rw-r--r-- 1 root root 497 Jun 9 22:21 #snmptt-trap-1402341660607264
-rw-r--r-- 1 root root 509 Jun 9 22:21 #snmptt-trap-1402341665104472
-rw-r--r-- 1 root root 472 Jun 9 22:21 #snmptt-trap-1402341665922629
-rw-r--r-- 1 root root 481 Jun 9 22:21 #snmptt-trap-1402341666056512
-rw-r--r-- 1 root root 482 Jun 9 22:21 #snmptt-trap-1402341666156010
-rw-r--r-- 1 root root 479 Jun 9 22:21 #snmptt-trap-1402341666362482
-rw-r--r-- 1 root root 508 Jun 9 22:21 #snmptt-trap-1402341667452544
-rw-r--r-- 1 root root 505 Jun 9 22:21 #snmptt-trap-1402341667789944
-rw-r--r-- 1 root root 508 Jun 9 22:21 #snmptt-trap-1402341668922606
Re: snmp traps
Posted: Mon Jun 09, 2014 3:30 pm
by sreinhardt
I didn't catch this before, you have over 200K traps in the spool directory, which I assume are mostly suck there as root:root. Please do the following:
Code: Select all
service snmptrapd stop
service snmptt stop
cd /var/spool/snmptt
find . -type f -delete
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI-SNMPTrap-setup.sh
sh ./NagiosXI-SNMPTrap-setup.sh
service snmptrapd restart
service snmptt restart
This will clear all of the bad traps, set correct permissions, and properly install\update you to snmptt 1.4.
Re: snmp traps
Posted: Tue Jun 10, 2014 8:34 am
by hanya.radwan
i perform all the command and the below are the result of the commands after perform the commands, does the permission correct ??
but nagios nagios xi doesn't show any traps :
Code: Select all
[root@nms ~]# ll /var/spool/snmptt/ | wc -l
4
[root@nms ~]# ll -t /var/spool/snmptt | tail -20
total 12
-rw-r--r-- 1 root root 189 Jun 10 12:52 #snmptt-trap-1402393977620610
-rw-r--r-- 1 root root 187 Jun 10 12:52 #snmptt-trap-1402393977494710
-rw-r--r-- 1 root root 189 Jun 10 12:52 #snmptt-trap-1402393972716915
Code: Select all
[root@nms ~]# rpm -qa | grep snmp
net-snmp-5.5-49.el6_5.1.x86_64
net-snmp-utils-5.5-49.el6_5.1.x86_64
php-snmp-5.3.3-27.el6_5.x86_64
net-snmp-libs-5.5-49.el6_5.1.x86_64
net-snmp-perl-5.5-49.el6_5.1.x86_64
snmptt-1.4-0.9.beta2.el6.noarch
Code: Select all
[root@nms ~]# ls -lva /usr/local/bin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root nagios 804 Jun 10 10:25 addmib
-rwxrw-rw- 1 root root 1321 Jul 4 2013 addmib.nms
-rwxr-xr-x 1 root root 804 Jun 13 2013 addmib.orig
-rwxr-xr-x 1 root root 2078 Jun 10 10:25 snmptraphandling.py
-rwxr-xr-x 1 root root 3381 Jul 10 2013 snmptraphandling.py.nms
-rwxr-xr-x 1 root root 2078 Jul 10 2013 snmptraphandling.py.orig
-rwxr-xr-x 1 root root 30438 Jun 10 10:25 snmpttconvertmib
-rwxr-xr-x 1 root root 30438 Sep 15 2013 snmpttconvertmib.1.3
-rwxr-xr-x 1 root root 30775 Sep 15 2013 snmpttconvertmib.1.4_2beta
[root@nms ~]# ls -lva /usr/local/sbin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root root 177466 Sep 15 2013 snmptt.1.3
-rwxr-xr-x 1 root root 177466 Sep 15 2013 snmptt.1.4_2beta
[root@nms ~]# ls -lva /usr/sbin | grep -i 'snmp\|addmib'
-rwxr-xr-x 1 root root 30744 Mar 24 20:11 snmpd
-rwxr-xr-x 1 root root 30776 Mar 24 20:11 snmptrapd
-rwxr-xr-x 1 root root 177466 Oct 22 2012 snmptt
-rwxr-xr-x 1 root root 6493 Oct 22 2012 snmptthandler
Code: Select all
[root@nms ~]# grep -i 'daemon_uid\|mode =' /etc/snmp/snmptt.ini
mode = daemon
description_mode = 1
# A second (child) process will be started as the daemon_uid user so
daemon_uid = snmptt
Code: Select all
[root@nms ~]# grep -i 'exec' /etc/snmp/snmptt.conf | tail -n 10
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New device detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing controller changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing device changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Self-Monitoring Warning (predictive failure - data recovery possible) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Self-Monitoring Warning (predictive failure - data recovery questionable) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Storage Controller Error (not responding) $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New Storage controller detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "New device detected $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing controller changed $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Existing device changed $*"
Code: Select all
[root@nms ~]# grep -i 'nag' /etc/group
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt
[root@nms ~]# grep -i 'snmp' /etc/group
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt
snmptt:x:496:
Code: Select all
[root@nms ~]# ll /var/log/snmptt/
total 11117412
-rw-rw-r-- 1 snmptt nagios 914967544 Jun 10 16:07 snmptt.debug
-rw-rw-r-- 1 nagios nagios 17654937 Jun 4 04:42 snmptt.debug-20140604
-rw-rw-r-- 1 nagios nagios 2618039525 Jun 6 03:09 snmptt.debug-20140606
-rw-rw-r-- 1 nagios nagios 2598377876 Jun 6 19:27 snmptt.debug-20140607
-rw-rw-r-- 1 nagios nagios 2108311943 Jun 9 03:33 snmptt.debug-20140609
-rw-rw-r-- 1 nagios nagios 2975608260 Jun 10 03:33 snmptt.debug-20140610
-rw-rw-r-- 1 nagios nagios 68107251 Jun 10 12:52 snmptthandler.debug
-rw-rw-r-- 1 nagios nagios 20923225 Jun 6 03:08 snmptthandler.debug-20140606
-rw-rw-r-- 1 nagios nagios 60875791 Jun 8 03:50 snmptthandler.debug-20140608
-rw-rw-r-- 1 nagios nagios 295936 Jun 10 12:52 snmpttsystem.log
-rw-rw-r-- 1 nagios nagios 80664 Jun 3 15:12 snmpttsystem.log-20140604
-rw-rw-r-- 1 nagios nagios 793196 Jun 6 18:46 snmpttsystem.log-20140608
[root@nms ~]# ll -d /var/log/snmptt/
drwxrwxr-x 2 nagios nagios 4096 Jan 18 20:44 /var/log/snmptt/
[root@nms ~]# ll /var/spool/snmptt
total 12
-rw-r--r-- 1 root root 189 Jun 10 12:52 #snmptt-trap-1402393972716915
-rw-r--r-- 1 root root 187 Jun 10 12:52 #snmptt-trap-1402393977494710
-rw-r--r-- 1 root root 189 Jun 10 12:52 #snmptt-trap-1402393977620610
[root@nms ~]# ll -d /var/spool/snmptt
drwxrwxr-x 2 nagios nagios 13475840 Jun 10 12:52 /var/spool/snmptt
Re: snmp traps
Posted: Tue Jun 10, 2014 1:38 pm
by sreinhardt
Most items look great, such as the partial configs I have seen, and log files. However the spooled files should not be created as root:root, and this will cause snmptt to be unable to handle them properly. Could you please send me the following files:
Code: Select all
/etc/snmp/snmptt.ini
/etc/snmp/snmptt.conf
/etc/snmp/snmptrapd.conf
/etc/init.d/snmptrapd
And run the following command:
Re: snmp traps
Posted: Tue Jun 10, 2014 1:52 pm
by hanya.radwan
[root@nms ~]# ps -ef | grep snmp
Code: Select all
root 659 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 smartgctload Normal 1401954013 keep alive
root 1579 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 SIU Normal 1401958067 keep alive
root 2240 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 SIU Normal 1401954012 keep alive
root 3376 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 SIU Normal 1401957171 keep alive
root 3595 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 keepAliveTrap information 1401955181 SNMP Serv er
root 7998 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 smartgctload Normal 1401953941 keep alive
root 8355 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 SIU Normal 1401954012 keep alive
root 9199 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 SIU Normal 1401954012 keep alive
root 9604 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 SIU Normal 1401954012 keep alive
root 10894 51308 0 21:48 pts/0 00:00:00 grep snmp
root 11985 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 smartsigd Normal 1401976490 keep alive
root 12411 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 smartsigd Normal 1401953948 keep alive
root 12757 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 HSU Normal 1401954011 keep alive
root 13110 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 SIU Normal 1401954012 keep alive
root 13473 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 smartgctload Normal 1401954336 keep alive
root 15719 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 keepAliveTrap information 1401965005 SNMP Serv er
root 19036 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 smartgctload Normal 1401954697 keep alive
root 19343 1 0 12:52 ? 00:00:15 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid
root 19421 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 smartsigd Normal 1401954017 keep alive
root 21603 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 HSU manager Normal 1401953934 keep alive
root 23790 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 keepAliveTrap information 1402016200 SNMP Serv er
root 24861 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 mysqld Normal 1401954013 keep alive
root 27323 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 smartgctload Normal 1401966774 keep alive
root 27784 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 smartsigd Normal 1401954011 keep alive
root 28105 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 HSU manager Normal 1401954010 keep alive
root 28175 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 mysqld Normal 1402200851 keep alive
root 28294 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 SIU Normal 1401954005 keep alive
root 28858 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 smartsigd Normal 1402019441 keep alive
root 29437 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 keepAliveTrap information 1401954011 SNMP Ser ver
root 29538 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 HSU Normal 1401954140 keep alive
root 29644 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 smartgctload Normal 1401959983 keep alive
root 30941 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 smartsigd Normal 1401970549 keep alive
root 31906 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 SIU Normal 1401954027 keep alive
root 33658 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 HSU Normal 1401981227 keep alive
root 33756 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 SIU Normal 1401961813 keep alive
root 34014 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 keepAliveTrap information 1401954012 SNMP Serv er
root 34137 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 HSU manager Normal 1402039329 keep alive
root 34625 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 smartgctload Normal 1401954013 keep alive
root 34704 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 HSU Normal 1401954012 keep alive
root 35102 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 keepAliveTrap information 1401954052 SNMP Serv er
root 35146 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 HSU Normal 1401954350 keep alive
root 35371 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 mysqld Normal 1401954010 keep alive
root 37571 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 HSU Normal 1401956931 keep alive
root 37894 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 keepAliveTrap information 1401954012 SNMP Ser ver
root 38139 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 keepAliveTrap information 1401954011 SNMP Serv er
root 38987 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 keepAliveTrap information 1401973828 SNMP Ser ver
root 39769 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 SIU Normal 1401954012 keep alive
root 39783 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 HSU Normal 1402143843 keep alive
root 41290 1 0 Jun09 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 HSU manager Normal 1402057836 keep alive
root 41507 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 mysqld Normal 1401960454 keep alive
root 41960 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 SIU Normal 1401954012 keep alive
root 44191 1 0 Jun06 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml2 HSU Normal 1401965623 keep alive
root 44542 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu1 SIU Normal 1401954430 keep alive
root 45490 1 0 Jun05 ? 00:00:00 python /usr/local/bin/snmptraphandling.py hsu2 keepAliveTrap information 1401954012 SNMP Ser ver
root 46057 1 0 Jun08 ? 00:00:00 python /usr/local/bin/snmptraphandling.py ml1 keepAliveTrap information 1401954204 SNMP Serv er
root 46213 1 0 Jun06 ? 00:00:00 python /usr/loca er
root 46291 1 0 Jun08 ? 00:00:00 python /usr/loca
root 47356 1 0 Jun06 ? 00:00:00 python /usr/loca
root 47440 1 0 Jun06 ? 00:00:00 python /usr/loca
root 48587 1 0 Jun06 ? 00:00:00 python /usr/loca er
root 49504 1 0 Jun06 ? 00:00:00 python /usr/loca er
root 52258 1 0 Jun09 ? 00:00:00 python /usr/loca er
root 52520 1 0 Jun09 ? 00:00:00 python /usr/loca
root 57527 1 0 Jun06 ? 00:00:00 python /usr/loca
root 58632 1 0 Jun06 ? 00:00:00 python /usr/loca ver
root 58973 1 0 19:58 ? 00:00:00 /usr/sbin/snmptr
root 59090 1 0 19:58 ? 00:00:00 /usr/bin/perl /u
snmptt 59091 59090 0 19:58 ? 00:00:22 /usr/bin/perl /u
root 59220 1 0 Jun05 ? 00:00:00 python /usr/loca
root 59841 1 0 Jun06 ? 00:00:00 python /usr/loca
root 63209 1 0 Jun06 ? 00:00:00 python /usr/loca
root 65332 1 0 Jun06 ? 00:00:00 python /usr/loca er
Re: snmp traps
Posted: Tue Jun 10, 2014 1:54 pm
by hanya.radwan
the below is the content of snmptrapd file
snmptrapd.txt
Re: snmp traps
Posted: Tue Jun 10, 2014 2:08 pm
by sreinhardt
OK we have an issue there, as you may have noticed you have several processes that are likely zombies and have been around for several days.
Code: Select all
service nagios stop
service snmptt stop
service snmptrapd stop
killall -9 python
rm -rf /var/spool/snmptt/*
service nagios start
service snmptt start
service snmptrapd start
Of the configs that you provided, they look correct. Please also run the following command one more time.
Re: snmp traps
Posted: Tue Jun 10, 2014 2:17 pm
by hanya.radwan
I run the command as the following, is it failed stopping snmptt mean somthing?:
Code: Select all
[root@nms ~]# service nagios stop
Stopping nagios: .done.
[root@nms ~]# service snmptt stop
Stopping snmptt: [ OK ]
[root@nms ~]# service snmptrapd stop
Stopping snmptrapd: [ OK ]
[root@nms ~]# killall -9 python
[root@nms ~]# killall -9 python
python: no process killed
[root@nms ~]# rm -rf /var/spool/snmptt/*
[root@nms ~]# rm -rf /var/spool/snmptt/*
[root@nms ~]# service nagios start
Starting nagios: done.
Stopping snmptt: [FAILED]
Starting snmptt: Bad SIZE syntax (OCTETSTRING): At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Bad parse of OBJECT-TYPE: At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Did not find 'openViewSeverity' in module HPOV-NNM-MIB (/usr/share/snmp/mibs/ALCATEL-NMC-PROXY-AGENT-MIB.txt)
PID file: /var/run/snmptt.pid
[ OK ]
[root@nms ~]# service nagios start
Starting nagios: done.
Stopping snmptt: [ OK ]
Starting snmptt: Bad SIZE syntax (OCTETSTRING): At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Bad parse of OBJECT-TYPE: At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Did not find 'openViewSeverity' in module HPOV-NNM-MIB (/usr/share/snmp/mibs/ALCATEL-NMC-PROXY-AGENT-MIB.txt)
PID file: /var/run/snmptt.pid
[ OK ]
[root@nms ~]# service snmptt start
Starting snmptt:
[root@nms ~]# service snmptrapd start
Starting snmptrapd: [ OK ]
[root@nms ~]# ll -d /var/spool/snmptt/
drwxrwxr-x 2 nagios nagios 13475840 Jun 10 22:14 /var/spool/snmptt/
You have mail in /var/spool/mail/root
[root@nms ~]#