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,
Adding new host via snmp when vendor mib is present
Re: Adding new host via snmp when vendor mib is present
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:
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.
Create the file /etc/snmp/snmp.conf, and put into it:
Code: Select all
mibs +ALLSave 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!
Re: Adding new host via snmp when vendor mib is present
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
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.
Some devices have to be enabled for polling certain OID's with SNMP, do those devices need to be enabled for that?
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.txtBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adding new host via snmp when vendor mib is present
Here is the output of the snmpwalk.
Thank you for the help,
Thank you for the help,
You do not have the required permissions to view the files attached to this post.
Re: Adding new host via snmp when vendor mib is present
It looks like the second command was not run so can you rerun the commands again and post the /tmp/walk.txt file?
I also added the debug output to the snmpwalk command.
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.txtBe sure to check out our Knowledgebase for helpful articles and solutions!