Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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 ###################