Home » Categories » Multiple Categories

Nagios XI - SNMPTT Service generates Cannot find module errors

Problem Description

When starting or restarting the snmptt service you see output that looks like the following:

Starting snmptt: add_mibdir: strings scanned in from /usr/share/snmp/mibs/.index are too large.  count = 49
 Cannot find module (SNMPv2-TC): At line 8 in /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Cannot find module (IF-MIB): At line 12 in /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt)
......
Removed excessive lines from output as they are all similar
......
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (SNMPv2-TC): At line 25 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt
Did not find 'RowStatus' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
Did not find 'StorageType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
                                                           [  OK  ]

 

The errors generated above do not clearly identify the cause of the issue.

 

 

Explanation

This problem occurs when a MIB file contains spaces in the filename. The MIB files are located in the /usr/share/snmp/mibs/ folder.

This was identified as an issue and resolved in Nagios XI 5.4.0. As of version 5.4.0, when you upload MIBs via the Manage MIBs page the filename will have any spaces replaced with an underscore.

 

 

Resolutions

There are different ways to resolve this issue.

Delete MIB and re-upload

  • Navigate to Admin > System Extensions > Manage MIBs

  • Find the MIB with the space in the filename and click the X button to delete it

  • Use the Browse and Upload MIB button to re-upload the file

    • If you are using Nagios XI 5.4.0 and later, any spaces in the filename are replaced with an underscore

    • If you are using Nagios XI before 5.4.0 you will need to make sure the filename does not have any spaces before uploading it

 

Rename MIB File

Establish a terminal session to your Nagios XI server.

Rename the offending file and restart the snmptt service, for example:

cd /usr/share/snmp/mibs
mv 'NAGIOS NOTIFY MIB TEST.txt' 'NAGIOS-NOTIFY-MIB-TEST.txt'
service snmptt restart

 

After the service has restated there should be no errors generated. If the same error appears then you will need to rename all files that have a space in the filename.


 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - MariaDB STRICT_TRANS_TABLES
Viewed 654 times since Thu, Nov 16, 2017
Web Browser Reports 330 Error Content Encoding
Viewed 1856 times since Tue, Mar 7, 2017
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 3305 times since Wed, Jun 1, 2016
SNMP Trap - snmptrapd Service
Viewed 8437 times since Tue, Mar 24, 2015
Nagios XI - HTTP 500 Error / PHP Parse error - Unexpected $end
Viewed 2315 times since Mon, Jan 25, 2016
Nagios XI - Bandwidth Graphs Showing 0Mb/s in Non-English Systems
Viewed 2767 times since Fri, Dec 19, 2014
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 1763 times since Tue, Jan 26, 2016
Nagios XI - ICMP and Ping Checks Stopped Graphing
Viewed 3246 times since Mon, Jan 25, 2016
Nagios XI - Disabling Database UTF8 Connectivity
Viewed 204 times since Thu, Mar 8, 2018
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 1686 times since Mon, Jan 25, 2016