diff --git a/rules/solaris10/nrpe-host-auto.sh b/rules/solaris10/nrpe-host-auto.sh index f83db0d93baf948102b9a28fb5a74645e9ad86b0..72ba555cd81f5daa0fdf730585e637f963166d0b 100644 --- a/rules/solaris10/nrpe-host-auto.sh +++ b/rules/solaris10/nrpe-host-auto.sh @@ -23,9 +23,10 @@ trap "rm -f $FILESYSTEMS $ZPOOLS" 0 # FIXME: We need a check_zpool command, that checks the status of the pool, # and the capacity of the root zfs of that pool, and maybe also recursively # checks all child zfs. -if [ -f /usr/sbin/zpool ] +if [ -f /usr/sbin/zpool ] && [ -L /dev/zfs ] then /usr/sbin/zpool list -H -o name \ + | grep -v 'no pools available' \ | tee $ZPOOLS \ | awk '{ print "command[check-zfs-" $1 "]='$prefix'/libexec/check_zfs " $1