Page 2 of 3

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 1:19 pm
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>

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 1:22 pm
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.

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 1:37 pm
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.

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 1:47 pm
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

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 2:25 pm
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

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 2:46 pm
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.

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 2:48 pm
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.

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 3:00 pm
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

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 3:10 pm
by lmiltchev
Thank you, vAJ!

Re: Setup SNMP Traps on NetBotz 450

Posted: Thu Oct 09, 2014 3:30 pm
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?