![]() |
![]() |
Subject: | Linux MemAvailable via SNMP |
Author: | lnxzns |
Posted: | 2017-01-11 15:46 |
Hi,
I am using SNMP via Zenoss 5.1.x to monitor Linux memory usage.
As far as I can tell from my research I can not monitor "available memory" using onlySNMP provided OIDs as is.
Is there a way to calculate and display available memory as opposed to showing free memory
# free -k
total used free shared buff/cache available
Mem: 7231552 3593476 1625732 696 2012344 3339784
# snmpwalk -v 3 localhost iso.3.6.1.4.1.2021.4.6.0
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 1623968 kB
Thanks
Subject: | Not quite sure what you are |
Author: | Jane Curry |
Posted: | 2017-01-13 05:21 |
Not quite sure what you are looking for here The total installed memory is modelled as part of the HRFileSystemMap modeler plugin, using SNMP OIDs from the UCD-SNMP MIB to multiply blockSize by totalBlocks. This is displayed in the Overview panel for a device. You can see the code in $ZENHOME/DataCollector//plugins/zenoss/snmp/HRFileSystemMap.py.
I also use the CalculatedPerformance ZenPack -http://wiki.zenoss.org/ZenPack:Calculated_Performance to create a performance monitor for calcFreeMemory. This ZenPack allows you to create expressions in a performance template based on other collected datapoints and/or attributes of a device or a component, that have been gathered by a modeler. So I have the expression:
((memAvailReal + memCached) - memBuffer) *1024
for my calcFreeMem, where memAvailReal, memCached and memBuffer are datapoints already gathered as standard by the Device (/Server/Linux) template.
Note that the CalculatedPerformance ZenPack has a pre-req of the PythonCollector ZenPack - but you may well have that installed anyway.
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | You need to install the |
Author: | Jane Curry |
Posted: | 2017-01-23 10:15 |
You need to install the PythonCollector ZenPack (if it isn't already installed) and the CalculatedPerformance ZenPack. That then introdues a new type of datasource called Calculated Performance. See the documentation at http://wiki.zenoss.org/ZenPack:Calculated_Performance .
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
< |
Previous Accessing zendmd to change iface speed on Zenoss 5 |
Next Scale on Zenoss Service Dynamic |
> |