monitor mbox via snmp

Sometimes, it's necessary to monitor mbox by external NMS system using standard SNMP protocols. Below is a list of commonly used OID to monitor mbox system utilization.

First we need to enable snmp monioring on mbox and permit remote NMS server IP to scan mbox via UDP/161 (Need to open firewall rule).

!ip snmp-contact support@ransnet.comip snmp-location "This is SDWAN-HQ"ip snmp-server Letmein99 #allow NMS to pollip snmp-trap Letmein99 #send snmp traps to NMS!firewall-input 11 permit all udp dport 161 src!

NOTE in above config sample:

  1. the NMSP server ( above can be any standard NMS system such as MRTG, Solarwinds, ManageEngine, PRTG, etc etc.
  2. "Letmein99" is version 2c community string, which should be configured on remote NMS system as well.


Below are list of commonly used oids for monitoring mbox via snmp, to retrieve basic system stats and interface bandwidth utilization. For comprehensive monitoring of mbox, it's highly recommended to use mfusion.

CPU Statistics

Load 1 minute Load: . 5 minute Load: . 15 minute Load: . CPU percentage of user CPU time: . raw user cpu time: . percentages of system CPU time: . raw system cpu time: . percentages of idle CPU time: . raw idle cpu time: . raw nice cpu time: . Statistics Total Swap Size: . Available Swap Space: . Total RAM in machine: . Total RAM used: . Total RAM Free: . Total RAM Shared: . Total RAM Buffered: . Total Cached Memory: . monitoring (need to find out disk no.) Disk health status: HOST-RESOURCES-MIB::hrFSAccess.2 Disk total size: HOST-RESOURCES-MIB::hrStorageSizeInBytes.2 Disk used space: HOST-RESOURCES-MIB::hrStorageUsedInBytes.2

Interface Status and statistics. Note the interface Index may vary depending on the model. use snmpwalk to identify the Index no. for your target interfaces. In below example eth0 has a index no if .4 (as shown in RFC1213-MIB::ifDescr.4 = STRING: "eth0")

On the NMS server, use snmp to discover target interface index no. below is an example:

snmpwalk -v 2c -c Letmein99 RFC1213-MIB::ifDescrRFC1213-MIB::ifDescr.1 = STRING: "lo"RFC1213-MIB::ifDescr.2 = STRING: "dummy0"RFC1213-MIB::ifDescr.3 = STRING: "eql"RFC1213-MIB::ifDescr.4 = STRING: "eth0"RFC1213-MIB::ifDescr.5 = STRING: "eth1"RFC1213-MIB::ifDescr.6 = STRING: "eth2"RFC1213-MIB::ifDescr.7 = STRING: "eth3"RFC1213-MIB::ifDescr.8 = STRING: "teql0"RFC1213-MIB::ifDescr.9 = STRING: "tunl0"RFC1213-MIB::ifDescr.10 = STRING: "gre0"RFC1213-MIB::ifDescr.11 = STRING: "gretap0"RFC1213-MIB::ifDescr.12 = STRING: "ip6_vti0"RFC1213-MIB::ifDescr.13 = STRING: "sit0"RFC1213-MIB::ifDescr.14 = STRING: "ip6tnl0"RFC1213-MIB::ifDescr.15 = STRING: "ip6gre0"RFC1213-MIB::ifDescr.16 = STRING: "bond0"Monitor Interface up/down statusRFC1213-MIB::ifOperStatus.1 = INTEGER: up(1)RFC1213-MIB::ifOperStatus.2 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.3 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.4 = INTEGER: up(1)RFC1213-MIB::ifOperStatus.5 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.6 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.7 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.8 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.9 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.10 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.11 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.12 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.13 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.14 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.15 = INTEGER: down(2)RFC1213-MIB::ifOperStatus.16 = INTEGER: down(2)Monitor Interface bandwidth utilization.RFC1213-MIB::ifInOctets.1 = Counter32: 1728347568RFC1213-MIB::ifInOctets.2 = Counter32: 0RFC1213-MIB::ifInOctets.3 = Counter32: 0RFC1213-MIB::ifInOctets.4 = Counter32: 4255679554RFC1213-MIB::ifInOctets.5 = Counter32: 0RFC1213-MIB::ifInOctets.6 = Counter32: 0RFC1213-MIB::ifInOctets.7 = Counter32: 0RFC1213-MIB::ifInOctets.8 = Counter32: 0RFC1213-MIB::ifInOctets.9 = Counter32: 0RFC1213-MIB::ifInOctets.10 = Counter32: 0RFC1213-MIB::ifInOctets.11 = Counter32: 0RFC1213-MIB::ifInOctets.12 = Counter32: 0RFC1213-MIB::ifInOctets.13 = Counter32: 0RFC1213-MIB::ifInOctets.14 = Counter32: 0RFC1213-MIB::ifInOctets.15 = Counter32: 0RFC1213-MIB::ifInOctets.16 = Counter32: 0RFC1213-MIB::ifOutOctets.1 = Counter32: 1728347568RFC1213-MIB::ifOutOctets.2 = Counter32: 0RFC1213-MIB::ifOutOctets.3 = Counter32: 0RFC1213-MIB::ifOutOctets.4 = Counter32: 1396915418RFC1213-MIB::ifOutOctets.5 = Counter32: 0RFC1213-MIB::ifOutOctets.6 = Counter32: 0RFC1213-MIB::ifOutOctets.7 = Counter32: 0RFC1213-MIB::ifOutOctets.8 = Counter32: 0RFC1213-MIB::ifOutOctets.9 = Counter32: 0RFC1213-MIB::ifOutOctets.10 = Counter32: 0RFC1213-MIB::ifOutOctets.11 = Counter32: 0RFC1213-MIB::ifOutOctets.12 = Counter32: 0RFC1213-MIB::ifOutOctets.13 = Counter32: 0RFC1213-MIB::ifOutOctets.14 = Counter32: 0RFC1213-MIB::ifOutOctets.15 = Counter32: 0RFC1213-MIB::ifOutOctets.16 = Counter32: 0Monitor Interface bandwidth utilization. below are OID for 64-bit counters (for high speed interfaces)IF-MIB::ifHCInOctets.1 = Counter64: 23208267624IF-MIB::ifHCInOctets.2 = Counter64: 0IF-MIB::ifHCInOctets.3 = Counter64: 0IF-MIB::ifHCInOctets.4 = Counter64: 38616617697IF-MIB::ifHCInOctets.5 = Counter64: 0IF-MIB::ifHCInOctets.6 = Counter64: 0IF-MIB::ifHCInOctets.7 = Counter64: 0IF-MIB::ifHCInOctets.8 = Counter64: 0IF-MIB::ifHCInOctets.9 = Counter64: 0IF-MIB::ifHCInOctets.10 = Counter64: 0IF-MIB::ifHCInOctets.11 = Counter64: 0IF-MIB::ifHCInOctets.12 = Counter64: 0IF-MIB::ifHCInOctets.13 = Counter64: 0IF-MIB::ifHCInOctets.14 = Counter64: 0IF-MIB::ifHCInOctets.15 = Counter64: 0IF-MIB::ifHCInOctets.16 = Counter64: 0IF-MIB::ifHCOutOctets.1 = Counter64: 23208267624IF-MIB::ifHCOutOctets.2 = Counter64: 0IF-MIB::ifHCOutOctets.3 = Counter64: 0IF-MIB::ifHCOutOctets.4 = Counter64: 130254786235IF-MIB::ifHCOutOctets.5 = Counter64: 0IF-MIB::ifHCOutOctets.6 = Counter64: 0IF-MIB::ifHCOutOctets.7 = Counter64: 0IF-MIB::ifHCOutOctets.8 = Counter64: 0IF-MIB::ifHCOutOctets.9 = Counter64: 0IF-MIB::ifHCOutOctets.10 = Counter64: 0IF-MIB::ifHCOutOctets.11 = Counter64: 0IF-MIB::ifHCOutOctets.12 = Counter64: 0IF-MIB::ifHCOutOctets.13 = Counter64: 0IF-MIB::ifHCOutOctets.14 = Counter64: 0IF-MIB::ifHCOutOctets.15 = Counter64: 0IF-MIB::ifHCOutOctets.16 = Counter64: 0


Below are sample config for monitoring MAP (520/130). Replace with actual NMS server IP, and change public to actual community string.

!snmp-server host traps publicsnmp-server enable traps snmpsnmp-server community public ro host!