Page 1 of 2

trapped by traps

Posted: Mon Aug 05, 2013 2:31 pm
by benhank
while trying to import an snmp trap I get the following error:

Code: Select all

Failed  convert mib path to snmptt.ini. (rc: 4)
also
The sending server is sending traps to my nagios server, but the server I set up with the nagios trap wiz isn't getting them.
(I am trying to get traps from my hpsim management server)

Code: Select all

[root@nagiosiskillingmep0111 ~]# tail -f /var/log/snmptt/snmptt.log
Sun Aug  4 22:51:18 2013 .1.3.6.1.4.1.11.2.17.1.0.58916872 Normal "Status Events" mybusted server - This special event can be generated by a user to 14 mybusted server Event Name: System is unreachable URL: http://simp02.one.org:280/mxportal/MxContextLaunch.jsp?systems=mybusted server&tool=System%20Page Event originator: mybusted server Event Severity: Critical Event received: 04-Aug-2013, 22:51:27 Event description: The current system is no longer reachable from the central management server, hardware status polling has marked this system as not responding   " enterprises.11.2.17.2.5.
and tailed

Code: Select all

[root@LkennagiosT01 ~]# tail -f /var/log/snmptt/snmpttunknown.log
Value 10:
Ent Value 0: .1.3.6.1.2.1.1.5.0=this server1
Ent Value 1: .1.3.6.1.4.1.232.11.2.11.1.0=0
Ent Value 2: .1.3.6.1.4.1.232.3.2.2.1.1.20.2=Slot 1
Ent Value 3: .1.3.6.1.4.1.232.3.2.2.1.1.2.2=30
Ent Value 4: .1.3.6.1.4.1.232.3.2.2.2.1.1.2=2
Ent Value 5: .1.3.6.1.4.1.232.3.2.2.2.1.11.2=PA2270H9SVC30G
Ent Value 6: .1.3.6.1.4.1.232.3.2.2.2.1.12.2=524288
I cant send the snmptt.conf the file is too big

I used this docs to set up snmp: Nagios XI – Integrating SNMP Traps

Re: trapped by traps

Posted: Mon Aug 05, 2013 4:31 pm
by scottwilkerson
Did you run the addmib command from the command line for this particular MIB?

Re: trapped by traps

Posted: Mon Aug 05, 2013 10:05 pm
by benhank
yeah

Re: trapped by traps

Posted: Mon Aug 05, 2013 10:31 pm
by scottwilkerson
Can you tell me is some Trap items are showing up in the Admin -> Unconfigured objects

Re: trapped by traps

Posted: Tue Aug 06, 2013 8:46 am
by benhank
the sending server is listed.
say if I wanted to add 100 mibs at once is their a way? I am thinking that maybe I should delete the mibs that are there and try again.
thanks for your help on this bro.

Re: trapped by traps

Posted: Tue Aug 06, 2013 8:55 am
by scottwilkerson
If the sending server is listed in Admin -> Unconfigured objects that is why you aren't seeing them in XI. My guess it is sending as a different name that what you entered in for the hostname when running the trap wizard.

For adding multiple MIB's you could just upload them to /usr/share/snmp/mibs and then loop through them to run the addmib command

Re: trapped by traps

Posted: Tue Aug 06, 2013 9:03 am
by benhank
So should I remove it from unconfig objects?

what does the 'process traps" do?

um ah how to I do the loop you mentioned? I did google it but the results make no sense to me.

I think the NSTI might be a better way to do this, but I don't know if it's result will appear in nagios like regular checks.
If this is stuff I should know, then tell me and I'll take a class or something.

Re: trapped by traps

Posted: Tue Aug 06, 2013 12:32 pm
by benhank
I tried to restart the service and got:

Code: Select all

[root@LkennagiosT01 tmp]# service snmptrapd restart
Stopping snmptrapd: pidof: invalid options on command line!

pidof: invalid options on command line!

                                                       
Starting snmptrapd:     [FAILED]


Re: trapped by traps

Posted: Tue Aug 06, 2013 12:47 pm
by abrist
This looks like a problem with systemd or sysVinit . . . When did these problems begin?

Re: trapped by traps

Posted: Tue Aug 06, 2013 12:57 pm
by benhank
today actually i think I ran it before a week ago and it worked