Page 5 of 6

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 11:35 am
by benhank
sreinhardt wrote:QOTD!!
>busts out crying< >loud wailing sounds of chewbacca in pain reverberate in IT dept ...<
I just checked with nscott, the resident master of snmp things, and addmib may come with our snmptt rpm, however the /usr/share/snmp is definitely an net-snmp thing. We may have to look at where to alter the /etc/snmp files to work with this change. Let's just make sure the specific snmptt rpm is still the same.

Code: Select all

rpm -qa | grep snmptt
Should return:
snmptt-1.3-3.nagios.noarch
=D
lack mof teh caffien = one baaaaaad utha <shut yo mouth< Im just talkin bout spence...

ok bro here is what im gonna do:
I am going to uninstall and reinstall, then I am going to do everything we have discussed here step by step and I'll post the whole schebang. that make sense?

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 12:36 pm
by sreinhardt
That sounds great! Let me know what happens, with any luck it will be "crap now i have unconfigured objects to configure" :D

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 2:13 pm
by benhank
I am not done yet, but have you ever uninstalled (by accident) snmp on a production server? And said server is monitoring 100+ Apc-ups's? And each one has 7 services associated with it?
and your manager and director are on the notifications list, which notifies on each downed and recovered object? which are enabled?

I know a guy who did that.....

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 2:24 pm
by sreinhardt
Ouch man, ouch, I hope that guy is ok after this experience.

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 1:29 pm
by benhank
well... I dunno. seems like trapping works off an on.

It will display results, but from one date, and when I rerun the trap from the sending server, nagios doesn't see the new trap.
I ran snmp walk and got:

Code: Select all

[root@LkennagiosT01 ~]# snmpwalk -v 1 -c SECRET_NAME -O e 127.0.0.1
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
Timeout: No Response from 127.0.0.1
[root@LkennagiosT01 ~]# snmpwalk -v 1 -c public -O e 127.0.0.1
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
iso.3.6.1.2.1.1.1.0 = STRING: "Linux LkennagiosT01.healthone.org 2.6.32-358.14.1                                                                             .el6.x86_64 #1 SMP Tue Jul 16 23:51:20 UTC 2013 x86_64"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 1:35 pm
by sreinhardt
Whoa man, those missing modules definitely are not helping as several of them are very base mibs. Is this from the mibs I gave you or from the reinstall of net-snmp stuffs? Also incase you weren't aware, snmp walks\gets are vastly different from traps, and will not find trap information. Just in case you were trying to query info thats only in traps.

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 2:02 pm
by benhank
It all happened after the reinstall.
I just cant figure out what's wrong. Setting up traps seems to be straightforward.

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 2:25 pm
by sreinhardt
Setting up traps seems to be straightforward.
You're crazy, and quite possibly the first person I have heard say that. I think the first step, is to see where net-snmp expects mibs to be placed, and see if some of these files do exist there.

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 2:34 pm
by benhank
and we do dat how? =D...
there seems to be a bajillion different opinions on that one according to google... man I am teh lost.

Re: recieving SNMP traps

Posted: Thu Aug 29, 2013 2:50 pm
by sreinhardt
This guy seems to show everything vs the net-snmp-config command that only wants to show one directory:

Code: Select all

snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR