[SERVER-11420] SNMP Field type mismatches Created: 28/Oct/13  Updated: 11/Jul/16  Resolved: 30/Oct/13

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.5.3
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Cadran Cowansage Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

N/A


Issue Links:
Related
Operating System: ALL
Steps To Reproduce:

0.) Install standard pre-req packages for SNMP
1.) Launch standalone running as --snmp-agent
2.) Run snmpwalk e.g.
snmpwalk -m MONGO-MIB -v 2c -c mongodb 0.0.0.0:1161 1.3.6.1.4.1.34601
3.) Compare field types - compare MIB fields from SNMP walk to those from db.serverStatus()

Participants:

 Description   

We noticed some counter fields from db.serverStatus mapped to gauge MIB field types. See list below

MIB Object serverStatus metric MIB Current Type MIB Proposed Type
flushTotalMs backgroundFlushing.total_ms Integer counter32
indexCounterAccesses indexCounters.accesses Integer counter32
indexCounterHits indexCounters.hits Integer counter32
indexCounterMisses indexCounters.misses Integer counter32
indexCounterResets indexCounters.resets Integer counter32
networkBytesIn network.bytesIn Integer counter32
networkBytesOut network.bytesOut Integer counter32
globalLockTotalTime globalLock.totalTime String counter64
globalLockLockTime globalLock.lockTime String counter64
metricsGetLastErrorWtimeNum metrics.getLastError.wtime.num Integer counter32
metricsGetLastErrorWtimeTotalMillis metrics.getLastError.wtime.totalMillis Integer counter32
metricsReplApplyBatchesNum metrics.repl.apply.batches.num Integer counter32
metricsReplApplyBatchesTotalMillis metrics.repl.apply.batches.totalMillis Integer counter32
metricsReplNetworkBytes metrics.repl.network.bytes String counter64
metricsReplNetworkGetmoresNum metrics.repl.network.getmores.num Integer counter32
metricsReplNetworkGetmoresTotalMillis metrics.repl.network.getmores.totalMillis Integer counter32
metricsReplOplogInsertTotalMillis metrics.repl.oplog.insert.totalMillis Integer counter32
metricsReplOplogInsertBytes metrics.repl.oplog.insertBytes String counter64
metricsReplPreloadDocsTotalMillis metrics.repl.preload.docs.totalMillis Integer counter32
metricsReplPreloadIndexesTotalMillis metrics.repl.preload.indexes.totalMillis Integer counter32


 Comments   
Comment by auto [ 29/Oct/13 ]

Author:

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

Message: Merge pull request #10 from jameswahlin/SERVER-11420

SERVER-11420 SNMP: Use counters (vs integer) where applicable
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/8be9c19fe1c7de1e3ca9a9d5c821471131d9602b

Comment by auto [ 29/Oct/13 ]

Author:

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

Message: Merge pull request #10 from jameswahlin/SERVER-11420

SERVER-11420 SNMP: Use counters (vs integer) where applicable
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/8be9c19fe1c7de1e3ca9a9d5c821471131d9602b

Comment by auto [ 29/Oct/13 ]

Author:

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

Message: SERVER-11420 SNMP: Use counters (vs integer) where applicable
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1319ea45f0d0169f23e50ec038f237412d537110

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