Build precise queries to find exactly what you need
Press ESC to close
Why do you call ‘free’ eight times? Why not 100? substitute this stuff ” memTotal_b=`free -b |grep Mem |awk ‘{print $2}’` memFree_b=`free -b |grep Mem |awk ‘{print $4}’` memBuffer_b=`free -b |grep Mem |awk ‘{print $6}’` memCache_b=`free -b |grep Mem |awk ‘{print $7}’`
memTotal_m=`free -m |grep Mem |awk ‘{print $2}’` memFree_m=`free -m |grep Mem |awk ‘{print $4}’` memBuffer_m=`free -m |grep Mem |awk ‘{print $6}’` memCache_m=`free -m |grep Mem |awk ‘{print $7}’` ”
with
mem=`free -m |grep Mem` and “free -m |grep Mem” with echo $mem
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!