Page 4 of 6

Re: recieving SNMP traps

Posted: Thu Aug 22, 2013 1:49 pm
by benhank
oh well...

Code: Select all

[root@LkennagiosT01 ~]# rpm -qa | grep snmptt
snmptt-1.4-0.6.beta2.el6.noarch
[root@LkennagiosT01 ~]#
Gentlemen, forgive me for this rant, but
change the location of the snmp dirs in an update....? who does that?.

Re: recieving SNMP traps

Posted: Thu Aug 22, 2013 1:55 pm
by sreinhardt
No forgiveness needed, it is rather absurd, and thankfully not due to us! Along the same lines, you definitely need to change back to our version of snmptt, we have it compiled with certain flags for use with nagios. It shouldn't have any dependencies and should be as easy as the commands below:

Code: Select all

yum remove snmptt
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/packages/snmptt-1.3-3.nagios.noarch.rpm
yum --nogpgcheck localinstall snmptt-1.3-3.nagios.noarch.rpm

Re: recieving SNMP traps

Posted: Thu Aug 22, 2013 2:26 pm
by benhank
YEAH!

Code: Select all

[root@LkennagiosT01 tmp]# rpm -qa | grep snmptt
snmptt-1.3-3.nagios.noarch
[root@LkennagiosT01 tmp]#
and then after sending a trap:

Code: Select all

[root@LkennagiosT01 tmp]# ll /var/spool/snmptt/
total 0
[root@LkennagiosT01 tmp]# ll /var/spool/snmptt/
total 4
-rw-r--r-- 1 root root 304 Aug 22 15:31 #snmptt-trap-1377199899334997

So the snmptt and snmpttunknown still are empty after sendint the test trap, but this is better than yesterday!

if this update is an problem you guys might want to put a warning out there or "in the nagios announcements when you login) or a sticky warning ppl.
Or your gonna get flooded.


But then again nobody is dumb enough to apply an update to snmp before looking at its changelog...oh wait...

Re: recieving SNMP traps

Posted: Thu Aug 22, 2013 2:57 pm
by sreinhardt
Did you alter the snmptt.ini again to be in daemon mode? I'm guessing the rpm overwrote anything already there.. :( But otherwise thats great that they are coming in again!

Re: recieving SNMP traps

Posted: Thu Aug 22, 2013 3:31 pm
by benhank
no.. i forgot =(
But I think maybe I have to uninstall net-snmp and then run the nagios install

Code: Select all

[root@LkennagiosT01 ~]# service snmpd restart
Stopping snmpd:                                            [  OK  ]
Starting snmpd:                                            [  OK  ]
[root@LkennagiosT01 ~]# service snmptt restart
Stopping snmptt:                                           [  OK  ]
Starting snmptt: Did not find 'mib-2' in module SNMPv2-SMI-v1 (/usr/local/share/snmp/mibs/host-resources-mib.mib)
Unlinked OID in HOST-RESOURCES-MIB: host ::= { mib-2 25 }
Undefined identifier: mib-2 near line 109 of /usr/local/share/snmp/mibs/host-resources-mib.mib
Did not find 'hrMIBAdminInfo' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Did not find 'hrStorage' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Did not find 'hrDevice' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Unlinked OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
Undefined identifier: hrMIBAdminInfo near line 7 of /usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrFSTypes ::= { hrDevice 9 }
Undefined identifier: hrDevice near line 226 of /usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrDeviceTypes ::= { hrDevice 1 }
Undefined identifier: hrDevice near line 108 of /usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrStorageTypes ::= { hrStorage 1 }
Undefined identifier: hrStorage near line 37 of /usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
                                                           [  OK  ]
[root@LkennagiosT01 ~]# service snmptrapd restart
Stopping snmptrapd:                                        [  OK  ]
Starting snmptrapd:                                        [  OK  ]

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 9:37 am
by sreinhardt
How about if I just tar up the mibs folder on my machine and we can go from there?!

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 9:43 am
by benhank
sure what do you need from me sir?

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 10:00 am
by sreinhardt
Try untarring this and placing it in /usr/share/snmp. You probably will need to chown to root.nagios and chmod to 664.

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 10:23 am
by benhank
done.

heres the like to the actual mibs:

Code: Select all

http://h18013.www1.hp.com/products/servers/management/hpsim/mibkit.html
it's ver 939


Would it be a bad idea to uninstall:
snmpd
snmptt
snmptrapd
and net-snmp
and then run Scott''s script?
I haven't done it, just askin'
Or should I force the install of the old versions? I think that when you reinstall snmptt it forces the new ver down yah throat.




Oh i checked this as well

Code: Select all

[root@LkennagiosT01 tmp]# rpm -qa | grep snmptt
snmptt-1.3-3.nagios.noarch
[root@LkennagiosT01 tmp]#

Re: recieving SNMP traps

Posted: Fri Aug 23, 2013 11:10 am
by sreinhardt
snmpd
snmptt
snmptrapd
and net-snmp
and then run Scott''s script?
I haven't done it, just askin'
Or should I force the install of the old versions? I think that when you reinstall snmptt it forces the new ver down yah throat.
I am kinda confused here, maybe not enough coffee, where did scott come into play here? I see no issues with doing these steps Although really its just:

Code: Select all

yum --nogpgcheck localinstall snmp-nagios.rpm-thingy (not real name:) and this is done already)
yum install net-snmp net-snmp-utils net-snmp-perl net-snmp-libs (as a note, I have version 5.5-44)
something/something/scotts-script