Ad Widget

Collapse

How Can I Measure Memory Utilization With SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SouperGrover
    Junior Member
    • May 2013
    • 22

    #1

    How Can I Measure Memory Utilization With SNMP

    What is the best way to calculate the amount of memory used via SNMP? I have a handful of appliances (mostly linux based) that I want to monitor memory for. I see several different memory items SNMP will give me, but I'm not sure which ones to pick
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    HOST-RESOURCES-MIB::hrMemorySize.0

    and then these:
    HOST-RESOURCES-MIB::hrStorageIndex.X <-- Index für LLD
    HOST-RESOURCES-MIB::hrStorageType.X <-- Name, search for "hrStorageRam" here
    HOST-RESOURCES-MIB::hrStorageSize.X <-- actual size of memory
    HOST-RESOURCES-MIB::hrStorageUsed.X <-- used memory

    in my case, X = 1. But that may differ. Better utilize LLD for that.

    Comment

    • SouperGrover
      Junior Member
      • May 2013
      • 22

      #3
      Thanks, steveboyson. I was hoping to be able to add this to a template. But the index has a good possibility of being different on different devices right?

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4
        Not too sure about that. I would expect to have the RAM counters appearing at index 1 anytime - but on the other hand: why not be safe and check for "hrStorageRam"?

        Your LLD rule OID would then:
        HOST-RESOURCES-MIB::hrStorageType
        and you would filter on {#SNMPVALUE} with a regexp that allows only "hrStorageRam".

        The item prototypes will use {#SNMPINDEX}.

        P.S. There are other OID in that region, better have your MIBs in place and do a
        Code:
        snmpwalk -v2c -c<SNMP_COMMUNITY> your-device .1.3.6.1.2.1.25.2.3.1
        to be sure not to miss something.
        Probably HOST-RESOURCES-MIB::hrStorageAllocationUnits is of interest.
        Last edited by steveboyson; 23-01-2014, 02:58.

        Comment

        • mgajjar
          Junior Member
          • May 2021
          • 6

          #5
          I am new to Zabbix. I want to monitor my Linux Server's memory utilization via SNMP.

          The default item in the item prototype calculates the free memory.

          But I know that Linux defines free memory without including buffer/cache.

          Is there a way that I can say that calculate memory that is free + buffer/cache?

          Comment

          Working...