Build precise queries to find exactly what you need
Press ESC to close
It’s very useful check which must be turned on for every server!
PS: but small changes for check_all_diskstat.sh can be applied as soon it not returning a correct exit status for nagios notification.
I make some changes which can help somebody else: ################### #!/bin/bash EXITCODE=0 CHK=/usr/lib/nagios/plugins/check_diskstat.sh WARN=${1:-“300,10000,10000”} CRIT=${2:-“400,20000,20000”}
for DEVICE in `ls /sys/block`; do if [ -L /sys/block/$DEVICE/device ]; then DEVNAME=$(echo /dev/$DEVICE | sed ‘s#!#/#g’) echo -n “$DEVNAME: ” OUTPUT=”`$CHK -d $DEVICE -w $WARN -c $CRIT`” STATUS=$? if [ “$EXITCODE” -le “$STATUS” ]; then EXITCODE=$STATUS; fi echo $OUTPUT | sed “s#=#_$DEVNAME=#g” fi done exit $EXITCODE ###################
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!