Exposing CPU and Memory Information via SNMP

Follow

Issue

How do I expose CPU and memory statistics via SNMP? What is the MIB/OID?

Environment

  • Cumulus Linux, all versions

Resolution

The relevant OIDs are:

To configure SNMP to expose CPU and memory information:

  1. If snmpd has not already been enabled, follow instructions in the technical documentation to enable and start snmpd.
  2. Allow access to the OIDs by editing /etc/snmp/snmpd.conf. The following example adds the relevant MIBs to the systemonly view.

    ###############################################################################
    #
    #  ACCESS CONTROL
    #
    <CONFIGURATION_TRUNCATED/>
    # Cumulus specific
    view   systemonly  included   .1.3.6.1.4.1.40310.1
    view   systemonly  included   .1.3.6.1.4.1.40310.2
    # Memory utilization
    view   systemonly  included   .1.3.6.1.4.1.2021.4 
    # CPU utilization
    view   systemonly  included   .1.3.6.1.4.1.2021.11
    
  3. Restart snmpd to reload the configuration:

    cumulus@switch:~$ sudo service snmpd restart
    
Have more questions? Submit a request

Comments

Powered by Zendesk