Setup SNMP Traps on NetBotz 450

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setup SNMP Traps on NetBotz 450

Post by lmiltchev »

Might be something blocked by our network, who knows.
I don't think so - it seems like mibdepot was indeed hacked, so downloads are disabled.
Shouldn't I be able to get the MIB I need from the manufacturer?
You should be able to do this.

BTW, did you open port 162?

Code: Select all

iptables -L -n | grep 162
You should see something like this:

Code: Select all

ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:162
Normally, you won't be able to add the MIB in the GUI with the "Process trap" check-box selected if this is NOT a trap MIB. Have you try adding the MIB in the CLI?

Code: Select all

addmib <PathToNewMIB>
Be sure to check out our Knowledgebase for helpful articles and solutions!
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Setup SNMP Traps on NetBotz 450

Post by vAJ »

Did you download and run the script from: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf ?

This should've had set permissions on the MIBs dir.
Andrew J. - Do you even grok?
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Setup SNMP Traps on NetBotz 450

Post by toleolu »

iptables is good.

I couldn't go to the link you posted for the script, looks like it got cut off in the post, but if you're referring to the script to install snmptt support, yes I did that because the first time I looked for the snmptt log it said the directory did not exist. After running the install script, all that started running.

So I need to put this mib file out on a network share that the nagios server server has access to and try to run it from there??

Thanks for all your help.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setup SNMP Traps on NetBotz 450

Post by lmiltchev »

You can follow the How to Integrate SNMP Traps With Nagios XI" document. BTW, can you run the following commands and show us the output?

Code: Select all

ll -d /usr/share/snmp/mibs
ll -d /usr/share/snmp/mibs/processed_mibs
Be sure to check out our Knowledgebase for helpful articles and solutions!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Setup SNMP Traps on NetBotz 450

Post by toleolu »

Yes to the install script, I ran that yesterday. Doesn't mean I did it right, but it said it completed successfully.

Here's the outputs you requested:

[root@hhscnagios mibs]# ll -d /usr/share/snmp/mibs
drwxr-xr-x 2 root root 4096 Oct 8 15:43 /usr/share/snmp/mibs

And this:

[root@hhscnagios mibs]# ll -d /usr/share/snmp/mibs/processed_mibs
ls: cannot access /usr/share/snmp/mibs/processed_mibs: No such file or directory
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Setup SNMP Traps on NetBotz 450

Post by toleolu »

I may be making this more complicated than it needs to be.

If I do an SNMP Walk on this device, I get a long list stuff but nothing that indicates anything about being a sensor. If there was some way I could identify the sensors, I can just do a normal SNMP Active check and not worry about trying to set up all this SNMP trap stuff.

Any hints on what I might look for to identify the sensors. I can configure them pretty much any way I want through the NetBotz Management Conosle.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setup SNMP Traps on NetBotz 450

Post by lmiltchev »

OK, run the following commands:

Code: Select all

chown -R root:nagios /usr/share/snmp/mibs
chmod 775 /usr/share/snmp/mibs
chmod g+s /usr/share/snmp/mibs
cd /usr/share/snmp/mibs
chmod 664 *
then try to upload the MIB again via the web UI.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Setup SNMP Traps on NetBotz 450

Post by vAJ »

You really need to understand the different between pollable OIDs and SNMP traps. When you walk an SNMP enabled device, you're only seeing the pollable OIDs. Those are items that are active values that you can use Nagios to synchronously poll and chart. traps are asynchronous and are only sent when the SNMP provider alerts on those items that are defined. SNMPWALK will not show you anything regarding traps.

I would suggest getting a UI tool like iReasoning's MIB Browser and looking at all MIBs for your device(s). You should then be able to differentiate which items are traps by the red thubderbolt beside them.

If this is too much, you may want to find some good reading on SNMP. O'Reilly has a good book that I've kept handy for years; Essential SNMP
Andrew J. - Do you even grok?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setup SNMP Traps on NetBotz 450

Post by lmiltchev »

Thank you, vAJ!
Be sure to check out our Knowledgebase for helpful articles and solutions!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Setup SNMP Traps on NetBotz 450

Post by toleolu »

I've got a request sitting on my desk to renew our support contract at a cost of around $4,500.00. I don't appreciate being told to go read a freakin book when I'm spending that kind of money for support. Additionally, I've got a ton of other things I need to do around here besides play with Nagios.

Exactly what the hell are we paying for here? Quicker response to posts on forum?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Locked