mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41: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:
parent
d415877cdc
commit
e91f7ecba7
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue