Bobcares

SNMP MIB Upload Problems in Nagios – How to fix

by | Apr 25, 2021

SNMP MIB Upload Problems in Nagios can arise when uploading SNMP MIB files.

As part of our Server Management Services, we assist our customers with several Nagios queries.

Today, let us see how we can resolve SNMP MIB Upload Problems in Nagios.

 

How to fix SNMP MIB Upload Problems in Nagios

Moving ahead, let us see effective methods our Support Techs employ in order to fix these issues.

1. Permissions

At times, incorrect permissions on the SNMP MIB files may cause the problem.

Suppose, we receive one of the following errors:

failed to convert to snmptt mib

MIB could not be installed – directory permissions may be incorrect.

Then we execute the following commands to reset the permissions and ownership:

chmod -R ug+rw /usr/share/snmp/mibs
chown -R root:nagios /usr/share/snmp/mibs

Once we execute those commands, we will be able to upload the MIB file that previously did not work.

2. Modules Missing

If we upload a MIB to Nagios XI and the required modules are missing, we may notice warnings when we execute Net-SNMP commands in a terminal session.

For example, after uploading the MIB CISCO-IMAGE-MIB.my file, we receive these warnings when using the snmpwalk command:

MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (CISCO-SMI): At line 24 in /usr/share/snmp/mibs/CISCO-IMAGE-MIB.my
Did not find ‘ciscoMgmt’ in module #-1 (/usr/share/snmp/mibs/CISCO-IMAGE-MIB.my)
Unlinked OID in CISCO-IMAGE-MIB: ciscoImageMIB ::= { ciscoMgmt 25 }
Undefined identifier: ciscoMgmt near line 27 of /usr/share/snmp/mibs/CISCO-IMAGE-MIB.my

Here, it appears the CISCO-SMI module is missing.

However, if we upload the MIB CISCO-SMI.my file, we will not receive the warnings.

This is because the Net-SNMP commands look at all the MIB files in the /usr/share/snmp/mibs/ folder when executing. If the commands fail to find any modules, they will display the warnings.

We do not often see these warnings in the Nagios XI interface, as this output is hidden. Generally, we see the warnings in a terminal session.

It is not with the filename “CISCO-SMI.my” the Net-SNMP knows that the module is located in this file. The below line in the file defines it:

CISCO-SMI DEFINITIONS ::= BEGIN

The filename  “CISCO-SMI.my” is irrelevant. However, Cisco has made it easy by keeping the filename the same as the module definition name.

[Need help with the procedure? We are available 24*7]

 

Conclusion

In short, the SNMP MIB Upload Problems can arise while uploading SNMP MIB files. Today, we saw how our Support Techs fix these issues.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.