How to add Custom MIB.txt to Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
np-zefug
Posts: 3
Joined: Wed Apr 22, 2015 9:51 am

How to add Custom MIB.txt to Nagios

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to add Custom MIB.txt to Nagios

Post 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.
np-zefug
Posts: 3
Joined: Wed Apr 22, 2015 9:51 am

Re: How to add Custom MIB.txt to Nagios

Post 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 :)
np-zefug
Posts: 3
Joined: Wed Apr 22, 2015 9:51 am

Re: How to add Custom MIB.txt to Nagios

Post 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 :)
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to add Custom MIB.txt to Nagios

Post 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:

Code: Select all

net-snmp-config --default-mibdirs
Once you get the mib in the right folder there is no need to restart any services or such.
Locked