Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

foncu

Reviews(1)
byfoncu, December 19, 2017
1 of 1 people found this review helpful
Good plugin, I added Perfdata for NagiosGraph replacing the final 3 IF by this code:

if [[ "$percent" -le $critical ]]; then
echo "CRITICAL - $free MB ($percent%) Free Memory | total=${total}MB used=${used}MB"
exit $STATE_CRITICAL
elif [[ "$percent" -le $warning ]]; then
echo "WARNING - $free MB ($percent%) Free Memory | total=${total}MB used=${used}MBÂș"
exit $STATE_WARNING
elif [[ "$percent" -gt $warning ]]; then
echo "OK - $free MB ($percent%) Free Memory | total=${total}MB used=${used}MB"
exit $STATE_OK
fi