-- -*- mode:snmp -*- MONGO-MIB DEFINITIONS ::= BEGIN --====================================================================== -- MIB compatible with MongoDB version >= 2.5.1 -- For more information, please see http://www.mongodb.org/ --====================================================================== IMPORTS OBJECT-TYPE, enterprises, Counter, Gauge, IpAddress, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB; -- -- mongodb -- server 1 -- serverName 1,1 -- system 1,2 -- opcounts 1,3 -- globalopcounts 1,3,1 -- memory 1,4 -- connections 1,5 mongodb OBJECT IDENTIFIER ::= { enterprises 34601 } serverTable OBJECT-TYPE SYNTAX SEQUENCE OF serverTableEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "This table gives information and statistics for each server." ::= { mongodb 1 } serverTableEntry OBJECT-TYPE SYNTAX ServerEntry ACCESS not-accessible STATUS mandatory DESCRIPTION "This defines a server." INDEX { serverName } ::= { serverTable 1 } serverName OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) ACCESS read-only STATUS mandatory DESCRIPTION "The port of the virtual server is the name." ::= { serverTableEntry 1 } ServerEntry ::= SEQUENCE { serverName DisplayString (SIZE (0..255)), system OBJECT IDENTIFIER, opcounts OBJECT IDENTIFIER, memory OBJECT IDENTIFIER, connections OBJECT_IDENTIFIER } system OBJECT IDENTIFIER ::= { serverTableEntry 2 } opcounts OBJECT IDENTIFIER ::= { serverTableEntry 3 } globalopcounts OBJECT IDENTIFIER ::= { opcounts 1 } memory OBJECT IDENTIFIER ::= { serverTableEntry 4 } connections OBJECT_IDENTIFIER ::= { serverTableEntry 5 } --============================================================================= -- Root for mongod --============================================================================= -- Root OID: .1.3.6.1.4.1.34601.1 -------- -- system -------- port OBJECT-TYPE SYNTAX Integer32 ACCESS read-only STATUS mandatory DESCRIPTION "port for this process" ::= { system 1 } sysUpTime OBJECT-TYPE SYNTAX TimeTicks ACCESS read-only STATUS mandatory DESCRIPTION "uptime (in hundredths of a second)" ::= { system 2 } -------- -- op counters -------- globalOpInsert OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "global insert counts" ::= { globalopcounts 1 } globalOpQuery OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "global query counts" ::= { globalopcounts 2 } globalOpUpdate OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "global update counts" ::= { globalopcounts 3 } globalOpDelete OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "global delete counts" ::= { globalopcounts 4 } globalOpGetMore OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "global get more counts" ::= { globalopcounts 5 } -------- -- memory -------- memoryResident OBJECT-TYPE SYNTAX Integer32 UNITS "MB" MAX-ACCESS read-only STATUS current DESCRIPTION "resident memory used by mongod" ::= { memory 1 } memoryVirtual OBJECT-TYPE SYNTAX Integer32 UNITS "MB" MAX-ACCESS read-only STATUS current DESCRIPTION "virtual memory used by mongod" ::= { memory 2 } memoryMapped OBJECT-TYPE SYNTAX Integer32 UNITS "MB" MAX-ACCESS read-only STATUS current DESCRIPTION "data mapped into mongod" ::= { memory 3 } -------------- -- connections -------------- connectionsCurrent OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "current # of open connections" ::= { connections 1 } connectionsAvailable OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "# of available connections" ::= { connections 2 } connectionsTotalCreated OBJECT-TYPE SYNTAX Counter MAX-ACCESS read-only STATUS current DESCRIPTION "count of all connections created to mongod, including those now closed" ::= { connections 3 } END