Build precise queries to find exactly what you need
Press ESC to close
#!/bin/bash
if [ “$1” = “-w” ] && [ “$2” -gt “0” ] && [ “$3” = “-c” ] && [ “$4” -gt “0” ]; then temp=`iostat|sed -n “4p”` IFS= read -r -a array TIOWAIT” -ge “$INTCRIT” ]; then echo “IO Wait: CRITICAL – $IOWAIT % |IOWAIT=$IOWAIT;;;;” exit 2 elif [ “$INTIOWAIT” -ge “$INTWARN” ]; then echo “IO Wait: WARNING – $IOWAIT % |IOWAIT=$IOWAIT;;;;” exit 1 else echo “IO Wait: OK – $IOWAIT % |IOWAIT=$IOWAIT;;;;” exit 0 fi else echo “$0 v1.1” echo “” echo “Usage:” echo “$0 -w -c ” echo “” echo “warnlevel and critlevel is percentage value without %” echo ” echo “EXAMPLE: /usr/lib64/nagios/plugins/check_iowait.sh -w 90 -c 95 echo “” exit fi
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!