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

mohanpn

Reviews(1)
bymohanpn, October 29, 2018
Thank you for such a simple script that can make the life easy.

Just observed that at times one may face ZERO DIVIDE error (in case SWAP is ZERO).
So added minor check in the script to get over that error.

if [ $ram_tot -eq 0 ] then
ram_tot=1
fi

if [ $swap_tot -eq 0 ] then
swap_tot=1
fi