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

Plugin lxc: remove ineffective usage of "bc"

The command "wc -w" already outputs the final result.
Thus we do not need this command (and do not have to depend on it).
This commit is contained in:
Lars Kruse 2019-08-12 00:12:11 +02:00
parent d415877cdc
commit e91f7ecba7

View file

@ -52,8 +52,8 @@ it with:
-- with 104 a valid lxc instance), if you -- with 104 a valid lxc instance), if you
get a warning, fix the config file. get a warning, fix the config file.
For the logins graph, you need the bc command, and, For the logins graph, the "users" command is required in each
in each container, the users command. container.
Tested on Debian buster and Debian jessie. Tested on Debian buster and Debian jessie.
@ -358,7 +358,7 @@ done
echo "multigraph lxc_logins" echo "multigraph lxc_logins"
for n in $active_guests for n in $active_guests
do do
echo $(clean_fieldname "logins__${n}").value $(lxc-attach -n "$n" users | wc -w | bc) echo $(clean_fieldname "logins__${n}").value $(lxc-attach -n "$n" users | wc -w)
done done
echo "multigraph lxc_net" echo "multigraph lxc_net"