1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +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
get a warning, fix the config file.
For the logins graph, you need the bc command, and,
in each container, the users command.
For the logins graph, the "users" command is required in each
container.
Tested on Debian buster and Debian jessie.
@ -358,7 +358,7 @@ done
echo "multigraph lxc_logins"
for n in $active_guests
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
echo "multigraph lxc_net"