Page 1 of 1
How to add Custom MIB.txt to Nagios
Posted: Wed Apr 22, 2015 9:58 am
by np-zefug
Hello,
i'm a new nagios AND linux user and want to test nagios with our Sophos Firewall.
I already installed nagios 3.4.1 successfully, downloaded the MIB-File(.txt) from the Firewall but do not know how to add the mibs to nagios.
Is there a Plugin or sth. like that to add this customs MIB's?
thank you.
Re: How to add Custom MIB.txt to Nagios
Posted: Wed Apr 22, 2015 10:27 am
by jdalrymple
Nagios core just uses net-snmp. Copy the MIB to your MIBs directory (usually /usr/share/snmp/mibs) and you should be in business.
Re: How to add Custom MIB.txt to Nagios
Posted: Thu Apr 23, 2015 1:22 am
by np-zefug
Thank you for your quick answer!!!
I got the following Folder in: /usr/share/snmp/
mib2c-data and
snmpconf-data.
Should i just creat the Folder "mib" and copy the txt there?
must i restart some Services or something like that?
Thank you

Re: How to add Custom MIB.txt to Nagios
Posted: Thu Apr 23, 2015 3:56 am
by np-zefug
Thanks for your answer! In the SNMP Folder are following Directorys:
mib2c-data snmpconf-data
should i add the MIBS Directory and copy the Mib.txt in there?
Must i restart some services or something like that?
thanks

Re: How to add Custom MIB.txt to Nagios
Posted: Thu Apr 23, 2015 9:24 am
by jdalrymple
You may need to do some fiddling to find your mibs directory - your installation isn't what we would see as the standard here.
This is the documentation you need:
http://www.net-snmp.org/wiki/index.php/ ... ading_MIBS
Note specifically this part:
Note that many distributions change the default paths. To find out which directories are used on your system, run the following command:
Once you get the mib in the right folder there is no need to restart any services or such.