Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update memory.py

added mem_cached
  • Loading branch information...
commit 40118644d2ed1b9a7d0ecba51b1bb461cd91de68 1 parent 42d9906
strangereon strangereon authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ecks/plugins/memory.py
3  ecks/plugins/memory.py
View
@@ -20,7 +20,7 @@
def get_memory(parent, host, community):
""" This is a plugin to be loaded by Ecks
- return a tuple containing (total_swap, avail_swap, total_real, avail_real, mem_buffer). Values are in kiloBytes
+ return a tuple containing (total_swap, avail_swap, total_real, avail_real, mem_buffer, mem_cached). Values are in kiloBytes
"""
memory = (1,3,6,1,4,1,2021,4) # UCD-SNMP-MIB
@@ -33,4 +33,5 @@ def get_memory(parent, host, community):
parent._extract(data, int, 5),
parent._extract(data, int, 6),
parent._extract(data, int, 14),
+ parent._extract(data, int, 15),
)[0]
Please sign in to comment.
Something went wrong with that request. Please try again.