×

SNMP MIB Upload Problems in Nagios – Fix it Now ?


SNMP MIB Upload Problems in Nagios – Fix it Now ?

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

This issue happens when there is an incorrect permissions on the SNMP MIB files and therefore results in MIB not able to be installed.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform several Nagios queries.

In this context, we shall look into how to fix SNMP MIB Upload Problems in Nagios.


How to fix SNMP MIB Upload Problems in Nagios ?

You can try any of the tips provided in this section to resolve this error.


1. Permissions

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

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

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


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 fixing Nagios errors? We are available 24*7. ]

Who We Are ?

Most prominent, efficient, and well-performing IT companies and software solutions.

Related Posts