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

Plugin lxc: verify the availability of "lxc-ls"

Previously "autoconf" only verified, that /var/lib/lxc exists.  But this
could be just a remainder of a formerly installed lxc package.
This commit is contained in:
Lars Kruse 2019-08-12 02:02:31 +02:00
parent 59cb851cf5
commit 856572ad9b

View file

@ -183,6 +183,8 @@ do_autoconf() {
echo "no (/proc/net/dev cannot be read)"
elif [ ! -e "$lxcpath" ]; then
echo "no ($lxcpath is not present)"
elif [ -z "$(which lxc-ls)" ]; then
echo "no ('lxc-ls' is not available in PATH)"
else
echo yes
fi