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

lxc < 3 support

This commit is contained in:
Marc SCHAEFER 2019-08-10 11:43:35 +02:00 committed by Lars Kruse
parent ce6e67fffc
commit 3e865223c2

View file

@ -56,7 +56,11 @@ function lxc_netdev {
local g=$1 dev
if [ -f $lxcpath/$g/config ]; then
grep lxc.net.0.veth.pair $lxcpath/$g/config | awk '{print $NF;}'
# lxc3
egrep '^lxc.net.0.veth.pair' $lxcpath/$g/config | awk '{print $NF;}'
# lxc < 3
# egrep '^lxc.network.veth.pair' $lxcpath/$g/config | awk '{print $NF;}'
else
echo unknown
fi