1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Update in: 5 March 2024


:

Important Notice: This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.

#!/bin/bash

# Cor van Wandelen

# percentage memory used on VMware host

if [ $# -eq 0 ] || [ $# -eq 1 ]
then
echo “Syntax: <ip address> <snmp community>”
exit -1
fi

USED=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.5.1.1.2 | cut -d ‘ ‘ -f4 | paste -sd+ | bc`
TOTAL=`snmpwalk -v2c -c $2 $1 1.3.6.1.2.1.25.2.2.0 | cut -d ‘ ‘ -f4`

echo “scale=2 ; ($USED / $TOTAL) * 100” | bc

(Visited 451 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X