diff --git a/plugins/disk/lvm_ b/plugins/disk/lvm_ index 5d6ceb53..35ac5f36 100755 --- a/plugins/disk/lvm_ +++ b/plugins/disk/lvm_ @@ -45,9 +45,9 @@ munin-node. EOF if [ "$1" = "autoconf" ]; then - if ! which lvs 2>/dev/null; then + if ! which lvs 2>&1 >/dev/null; then echo "no (lvs not found)" - elif ! which vgs 2>/dev/null; then + elif ! which vgs 2>&1 >/dev/null; then echo "no (vgs not found)" else echo "yes"