Nagios XI - SNMP walk wizard not using MIB's

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by tgriep »

Can you run the following to see if a snmpwalk will return the information you are looking for?

Code: Select all

snmpwalk 172.16.11.85 -v 2c -c public
How long did this take to run?

Can you go in to Admin > Manage Config wizards and update the SNMP Walk wizard to the latest version if it isn't at the latest and see if that helps?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by jacek »

I've setup the command but with 200 seconds timeout.
The command ended in ~20 seconds and resulted in 5952 lines (yes, 6 thousand!), but without the ones You can find in my first post.
Looks very bad :-P
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by tgriep »

If the snmpwalk isn't finding the OID's from the MIB file, Try renaming the MIB from

Code: Select all

NAS-MIB.mib
to

Code: Select all

NAS-MIB.txt
and see if that helps.

I cannot find out why they have to end in .txt but if that helps, let us know.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by jacek »

Hi, renamed the MIB as You told (via ssh, not by removing and adding as txt, is this right?), but no effect.
It is listing them as in the 2nd screen in 1st post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by tgriep »

Can you run the following from a shell and post the output?

Code: Select all

net-snmp-config --default-mibdirs
Can you run this too and attach the /tmp/walk.txt file?

Code: Select all

snmpwalk 172.16.11.85 -v 2c -c public >/tmp/walk.txt
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by jacek »

Code: Select all

net-snmp-config --default-mibdirs
gives:

Code: Select all

/root/.snmp/mibs:/usr/share/snmp/mibs
and the:

Code: Select all

snmpwalk 172.16.11.85 -v 2c -c public >/tmp/walk.txt
gives:
walk.txt
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by tgriep »

The snmpwalk isn't loading the MIB file. Lets create the snmp config file and set it up lo load all of the MIB files.
Create the file /etc/snmp/snmp.conf, and put into it:

Code: Select all

mibdirs /usr/share/snmp/mibs
mibs ALL
This tells the snmp* commands that they should load ALL mibs in the mibdirs /usr/share/snmp/mibs
Save the file, quit.
Now run the snmpwalk command and see if the OID's that you are looking for are found.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by jacek »

Finally!
Works like a charm! :-)
Shouldn't this be configured from the beginning by nagiosxi?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by tgriep »

It should search that folder for the MIB files by default without creating the snmp.conf file with those settings.
For some reason, your system isn't looking there.
Can I lock up this post?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: Nagios XI - SNMP walk wizard not using MIB's

Post by jacek »

Sure, if You think there is no point in searching for the reason :-)
Thanks for the help! :-)
Locked