Adding new host via snmp when vendor mib is present

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

Adding new host via snmp when vendor mib is present

Post by pclements »

I am running version 5.4.1 and trying to add Fortigate firewalls. I first uploaded the vendor supplied MIBs "Fortinet-Core" and "Fortinet-Fortigate", then I used the Configuration Wizard SNMP walk to see what is available to monitor. I cleared the OID field, increased the timeout to 1500, increased the Max Results to 1000, and entered the SNMP Community string that is configured on the host.

The response I get back is only using the SNMPv2-MIB, DISMAN-Event-MIB, IF-MIB. How do I get the discovery to use the vendor MIBs? Am I even doing this correctly?

Thank you,
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Adding new host via snmp when vendor mib is present

Post by tgriep »

If the snmpwalk wizard isn't loading the MIB files that are installed on the system, you can fix that by following this procedure.
Create the file /etc/snmp/snmp.conf, and put into it:

Code: Select all

mibs +ALL
This tells the snmp commands that they should load ALL of the mibs when they are executed.
Save the file, quit.
Now run the snmpwalk wizard 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!
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

Re: Adding new host via snmp when vendor mib is present

Post by pclements »

So there was not a snmp.conf file so I created one and then added the mib +ALL, saved the file and then rebooted. reran the snmp walk just as before and I get the same results.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Adding new host via snmp when vendor mib is present

Post by tgriep »

Lets see if running the snmpwalk from a command prompt returns all of the OID's for the MIB files.
Login as root to the Nagios server and run the following commands and post the /tmp/walk.txt file. Replace xxx.xxx.xxx.xxx with the IP address of your Fortinet device and public with the correct community string.

Code: Select all

snmpwalk -v2c -c public xxx.xxx.xxx.xxx  &>/tmp/walk.txt
ls -l /usr/share/snmp/mibs/ >>/tmp/walk.txt
Some devices have to be enabled for polling certain OID's with SNMP, do those devices need to be enabled for that?
Be sure to check out our Knowledgebase for helpful articles and solutions!
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

Re: Adding new host via snmp when vendor mib is present

Post by pclements »

Here is the output of the snmpwalk.

Thank you for the help,
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: Adding new host via snmp when vendor mib is present

Post by tgriep »

It looks like the second command was not run so can you rerun the commands again and post the /tmp/walk.txt file?

Code: Select all

snmpwalk -v2c -c public xxx.xxx.xxx.xxx -D parse-mibs &>/tmp/walk.txt
ls -l /usr/share/snmp/mibs/ >>/tmp/walk.txt
I also added the debug output to the snmpwalk command.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked