1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[openvz_] Add real autoconf test

This commit is contained in:
Lars Kruse 2016-10-17 02:55:39 +02:00
parent b2a5b603e1
commit 74697839dd

View file

@ -19,7 +19,11 @@ ATTRIBUTE=`basename $0 | sed 's/^openvz_//g'`
if [ "$1" = "autoconf" ]; then if [ "$1" = "autoconf" ]; then
echo yes if which vzlist >/dev/null; then
echo yes
else
echo "no (missing 'vzlist' executable)"
fi
exit 0 exit 0
fi fi
@ -45,4 +49,3 @@ vzlist -a -H --no-trim -o hostname,$ATTRIBUTE | filter | awk '{gsub(/\./,"_",$1)
print("'$ATTRIBUTE'"$1".value "$2)}' print("'$ATTRIBUTE'"$1".value "$2)}'
exit 0 exit 0