So where does the MIB go??

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

So where does the MIB go??

Post by toleolu »

I'm back playing around with this NetBotz temperature sensor, trying to get active checks set up instead of doing SNMP traps.

I've got a number of other APC products that we are currently doing active checks on for temperature and such, in fact I added a new APC NetBotz 200 with a temp probe the other day, by just using the existing commands that are already working with the other products. After I got that working, I tried doing the same thing with this 450 but I keep getting the error about it not liking the OID.

I downloaded the full list of OID's for the netbotz products from OIDView plus I have the netbotz300 MIB loaded on the nagios server, but try as I may, I can't get it to work.

So my question is, where is Nagios expecting to find this OID? I've looked at the other commands that work but I can't tell where the OID's they use are sitting. Is it supposed to be in the plugin, the MIB, or somewhere else.

Thanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: So where does the MIB go??

Post by krobertson71 »

did you copy it to the server or did you load it via the Nagios XI -> Admin -> Manage MIBs ?
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: So where does the MIB go??

Post by toleolu »

Uploaded via Nagios.

Curios though, the file had a .mib extension, but all the other files in the mib directory were .txt files. I changed it to a .txt file, but the other APC devices were working before I downloaded this file so I'm not all that sure the netbotz300.mib file is doing anything for me.

In looking at the list of OID's from OIDView, it lists the same OID that's being used on the older APC devices, same OID I used to get the NetBotz 200 working the other day. Don't see why I can't just make a copy of the command that works for the other APC devices, use that to create the new service, make the necessary edits for the different IP and get it to work.

Having trouble figuring out how all the pieces fit together I guess.
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: So where does the MIB go??

Post by toleolu »

Here is the command that works with our current APC gear with temperature sensors attached:

$USER1$/check_snmp -H $HOSTADDRESS$ -l System: -u "F" -C $ARG1$ -c $ARG2$ -o .1.3.6.1.4.1.5528.30.10.62.0

(ARG1 is the SNMP Community name, and ARG2 is critical temp value.)

This command works with the NetBotz 200 we just set up the other day.

These are the OID's I got from OID View listed under NETBOTZ300-MIB:
OID.JPG
My thinking is I should be able to substitute one of the OID's here in place of the OID above. Am I wrong about that?

Is there something I need to do with this check_snmp command to point it to the other MIB, or am I just beating a dead horse here with my lack of understanding on how this SNMP stuff works.

Mahalo
You do not have the required permissions to view the files attached to this post.
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: So where does the MIB go??

Post by toleolu »

Holy crap I got it!!! :D

I used SNMP Walk and entered the OID for the Sensor Table as the Top Level OID and it found it. Not sure why it works, but then that's nothing new, at least it works.
Capture.JPG
Happy New Year Nagios.
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: So where does the MIB go??

Post by Box293 »

Congratulations :)

The MIBs are a way of taking that very long OID number and turing it into something human friendly. You don't actually need the MIBs for check_snmp (as you've found).

I'm planning on creating some guides that explain how MIBs work with check_snmp ... just need some time ;)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: So where does the MIB go??

Post by tgriep »

Glad you have it working now. We'll close the post for you.
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: So where does the MIB go??

Post by toleolu »

Thanks all.

Box, when you get that guide done, could you shoot me out a copy please.

Happy 2015 everyone. By the way Nagios, record cold over the weekend, got down to 59. Need my long johns. :lol: :lol:
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Locked