[SERVER-12487] SNMP: MIB fails validation Created: 27/Jan/14  Updated: 04/Feb/15  Resolved: 05/Feb/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.4.6, 2.5.4
Fix Version/s: 2.4.10, 2.6.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-2663 Rename of MONGO-MIB.txt to MONGOD-MIB... Closed
Operating System: ALL
Participants:

 Description   
Issue Status as of March 31, 2014

ISSUE SUMMARY

The current MIB file defining the MongoDB SNMP interface fails validation under smilint, a widely used tool for evaluating MIB correctness.

USER IMPACT

smilint validation failure means import of the MONGO-MIB.txt file may fail under some SNMP monitoring products.

SOLUTION

The MIB file was cleaned up to ensure compatibility with smilint and other tools under SNMPv2.

WORKAROUNDS

None.

AFFECTED VERSIONS

All recent production release versions up to 2.4.9 are affected.

PATCHES

The fix is included in the 2.4.10 production release and the 2.6.0-rc0 release candidate, which will evolve into the 2.6.0 production release.

Original Description

MIB (MONGO-MIB.txt) fails using validator:

http://www.simpleweb.org/ietf/mibs/validate/

There are some errors for the most tolerant severity level (1):

Line Severity Problem
109 1 syntax error, unexpected LOWERCASE_IDENTIFIER, expecting UPPERCASE_IDENTIFIER
123 1 unknown object identifier label `serverTable'

There are more errors when increasing the severity level (max is 6).



 Comments   
Comment by Githook User [ 10/Mar/14 ]

Author:

{u'name': u'Dan Pasette', u'email': u'dan@10mongodb.com'}

Message: SERVER-12487 addressed smilint errors
Branch: v2.4
https://github.com/10gen/mongo-enterprise-modules/commit/f9ee40d3ed17ce67c8bc37dd94bda8dc670684d2

Comment by Eric Milkie [ 05/Feb/14 ]

There is an associated DOCS ticket.

Comment by Githook User [ 05/Feb/14 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-12487 install new MIB files in Enterprise Windows installer
Branch: master
https://github.com/mongodb/mongo/commit/4679fe8e6ed456a869ca17233fa31f4341aff967

Comment by Githook User [ 05/Feb/14 ]

Author:

{u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}

Message: SERVER-12487 addressed smilint errors; reorg enterprise structure

fixed smilint errors & reorged enterprise structures
removed metrics.repl.oplog.* as removed in db.serverStatus
fixed SNMP date formatting to conform to DateAndTime spec
removed c-style casts; fixed DateAndTime len
Updated readme for new MIB name
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/cb9d4d9a3a3343292fab1e62104b29f1ceaf5016

Comment by James Wahlin [ 31/Jan/14 ]

We currently see warnings for SNMPv2 constructs using both the simpleweb tool and smilint. It looks like the reason for this is we are missing a "MODULE-IDENTITY" construct that must be present in SNMPv2 MIBs, immediately following the IMPORT section.

Comment by Jonathan Abrahams [ 27/Jan/14 ]

Note - there's no SNMP component in JIRA for SERVER

Generated at Thu Feb 08 03:28:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.