recieving SNMP traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: recieving SNMP traps

Post 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?.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: recieving SNMP traps

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: recieving SNMP traps

Post 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...
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: recieving SNMP traps

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: recieving SNMP traps

Post 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  ]
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: recieving SNMP traps

Post by sreinhardt »

How about if I just tar up the mibs folder on my machine and we can go from there?!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: recieving SNMP traps

Post by benhank »

sure what do you need from me sir?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: recieving SNMP traps

Post 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.
You do not have the required permissions to view the files attached to this post.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: recieving SNMP traps

Post 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]#
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: recieving SNMP traps

Post 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 
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked