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 10.65.19.25 Letmein99    #allow NMS to pollip snmp-trap 10.65.19.25 Letmein99    #send snmp traps to NMS!firewall-input 11 permit all udp dport 161 src 10.65.19.25!

NOTE in above config sample: 

COMMON MBOX OID FOR SNMP MONITORING

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: .1.3.6.1.4.1.2021.10.1.3.1               5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2               15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3       CPU               percentage of user CPU time:    .1.3.6.1.4.1.2021.11.9.0               raw user cpu time:                  .1.3.6.1.4.1.2021.11.50.0               percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0               raw system cpu time:              .1.3.6.1.4.1.2021.11.52.0               percentages of idle CPU time:   .1.3.6.1.4.1.2021.11.11.0               raw idle cpu time:                   .1.3.6.1.4.1.2021.11.53.0               raw nice cpu time:                  .1.3.6.1.4.1.2021.11.51.0Memory Statistics               Total Swap Size:                .1.3.6.1.4.1.2021.4.3.0               Available Swap Space:         .1.3.6.1.4.1.2021.4.4.0               Total RAM in machine:          .1.3.6.1.4.1.2021.4.5.0               Total RAM used:                  .1.3.6.1.4.1.2021.4.6.0               Total RAM Free:                   .1.3.6.1.4.1.2021.4.11.0               Total RAM Shared:                .1.3.6.1.4.1.2021.4.13.0               Total RAM Buffered:              .1.3.6.1.4.1.2021.4.14.0               Total Cached Memory:           .1.3.6.1.4.1.2021.4.15.0Disk 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 10.65.19.19 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

SAMPLE SNMP CONFIG FOR MAP

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

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