Page 1 of 1

Adding new host via snmp when vendor mib is present

Posted: Thu Mar 23, 2017 12:17 pm
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,

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

Posted: Thu Mar 23, 2017 2:06 pm
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.

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

Posted: Thu Mar 23, 2017 2:55 pm
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.

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

Posted: Thu Mar 23, 2017 4:22 pm
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?

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

Posted: Thu Mar 23, 2017 4:48 pm
by pclements
Here is the output of the snmpwalk.

Thank you for the help,

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

Posted: Thu Mar 23, 2017 4:56 pm
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.