trapped by 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

trapped by traps

Post 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
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: trapped by traps

Post by scottwilkerson »

Did you run the addmib command from the command line for this particular MIB?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post by benhank »

yeah
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: trapped by traps

Post by scottwilkerson »

Can you tell me is some Trap items are showing up in the Admin -> Unconfigured objects
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post 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.
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: trapped by traps

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post 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.
Last edited by benhank on Tue Aug 06, 2013 12:32 pm, edited 1 time in total.
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
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post 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]

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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: trapped by traps

Post by abrist »

This looks like a problem with systemd or sysVinit . . . When did these problems begin?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: trapped by traps

Post by benhank »

today actually i think I ran it before a week ago and it worked
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
Locked