Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
mohanpn
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
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