Build precise queries to find exactly what you need
Press ESC to close
I tested with gluster 3.4.2 and it’s working very well i just modificate the script to manage TB volume with freespace on TB :
so on disk part of script replace this:
Disk) key=${field[@]:0:3} if [ “${key}” = “Disk Space Free” ]; then freeunit=${field[@]:4} free=${freeunit:0:-2} unit=${freeunit#$free} if [ “$unit” != “GB” ]; then Exit UNKNOWN “unknown disk space size $freeunit” fi free=$(echo “${free} / 1” | bc -q) if [ $free -lt $freegb ]; then freegb=$free fi fi ;;
by this :
Disk) key=${field[@]:0:3} if [ “${key}” = “Disk Space Free” ]; then freeunit=${field[@]:4} free=${freeunit:0:-2} freeconvgb=`echo “($free*1024)” | bc` unit=${freeunit#$free} if [ “$unit” = “TB” ]; then free=$freeconvgb unit=”GB” fi if [ “$unit” != “GB” ]; then Exit UNKNOWN “unknown disk space size $freeunit” fi free=$(echo “${free} / 1” | bc -q) if [ $free -lt $freegb ]; then freegb=$free fi fi ;;
Thanks a lot
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!