Commit graph

31 commits

Author SHA1 Message Date
Jérémy Lecour a15dbad04e Move to Ansible role 2021-06-10 11:24:56 +02:00
Alexis Ben Miloud--Josselin e03cf46089 [kvmstats] Replace old kvmstats script if it exists
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-19 11:37:52 +01:00
Alexis Ben Miloud--Josselin 8cdb5e409c [kvmstats] Use remount-usr role 2021-01-19 11:35:09 +01:00
Alexis Ben Miloud--Josselin d08a59d8ea Add evomaintenance 2020-11-17 15:35:43 +01:00
Alexis Ben Miloud--Josselin e27b9a29ce [kvmstats] Some syntax arrangements
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-07 11:59:03 +02:00
Alexis Ben Miloud--Josselin 883979e3e2 [kvmstats] Fix block listing
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-07 10:59:06 +02:00
Alexis Ben Miloud--Josselin c8f9e80847 Make kvmstats' cron executable
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-04 18:25:26 +01:00
Alexis Ben Miloud--Josselin 453f6af063 Improve printing when using CSV format
Make sure there is always the same number of fields per line.
2019-10-02 18:08:41 +02:00
Alexis Ben Miloud--Josselin c4f4166146 Fix arguments handling
Now all arguments are parsed. A non-valid argument will exit the program with an error.
2019-10-02 17:54:51 +02:00
Alexis Ben Miloud--Josselin 1cc11d39ee [kvmstats] Typo
"I don't sing my mother tongue"
2019-09-03 11:10:53 +02:00
Jérémy Lecour 5133a159d1 Better vCPU count
The `virsh vcpucount` can output the maximum or current values, but only one of the flags should be used at the same time.
2019-09-03 10:58:05 +02:00
Alexis Ben Miloud--Josselin 029073c3b0 [kvmstats] fix memory searching
All checks were successful
continuous-integration/drone/push Build is passing
Also add some comments.
2019-08-01 16:06:20 +02:00
Alexis Ben Miloud--Josselin a06be48a3e [kvmstats] fix printf when not using -a option 2019-08-01 15:33:02 +02:00
Alexis Ben Miloud--Josselin 97d9c76251 [kvmstats] show available resources 2019-08-01 15:23:09 +02:00
Alexis Ben Miloud--Josselin 5f250007ee [kvmstats] disable cron for now 2019-08-01 15:17:57 +02:00
Alexis Ben Miloud--Josselin 15e2165213 [kvmstats] add playbook to deploy kvmstats
All checks were successful
continuous-integration/drone/push Build is passing
Also add a cron to update the stats.
2019-07-31 14:42:50 +02:00
Alexis Ben Miloud--Josselin e246f02058 Remove -o h shortcut
Since human readable format is the default, this shortcut is useless.
2019-07-29 17:40:18 +02:00
Alexis Ben Miloud--Josselin e179979d23 Add -o option
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This option control the output of the script. Possible output are human
(same as usual), html and csv.

This commit also does some minor syntax changes.
2019-07-29 16:47:42 +02:00
Alexis Ben Miloud--Josselin 7cdea6920e [kvmstats] do not use subshell
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-26 16:50:38 +02:00
Alexis Ben Miloud--Josselin 7ead702375 [kvmstats] use xargs instead of variables 2019-07-26 16:12:38 +02:00
Alexis Ben Miloud--Josselin a1c96fd929 [kvmstats] typo
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-26 15:49:34 +02:00
Alexis Ben Miloud--Josselin a4a7eda8e2 [kvmstats] add error function
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2019-07-26 15:48:23 +02:00
Benoît S. b092fba8cd Use nproc to detect numbers of CPU
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
2019-04-19 10:25:22 +02:00
Alexis Ben Miloud--Josselin 20cecaa77a Fix line print
On the last awk command, line containing "yes"
were printed two times.
2018-12-27 10:37:55 +01:00
Alexis Ben Miloud--Josselin e12c362f7b Fix unit -u option
Also clean the code
2018-12-27 10:37:55 +01:00
Alexis Ben Miloud--Josselin 2e516bb734 Do not use tempfile
It is not needed anymore.
2018-11-02 17:32:19 +01:00
Alexis Ben Miloud--Josselin d8c77c59d3 Use virsh instead of hxselect
Also remove lvs. The code is much simpler now!
2018-10-11 14:48:44 +02:00
Alexis Ben Miloud--Josselin 93fc44aa06 Move depencies checking before args parsing
This commit also adds bc(1) to the dependencies
list and fixed some comments.
2018-08-02 18:04:28 +02:00
Alexis Ben Miloud--Josselin cfa1cf2261 Only count running VM in total
This commit also fixes the way kvmstats counts
running VM.
2018-08-02 17:39:16 +02:00
Alexis Ben Miloud--Josselin 4b5c68ca57 Add a way to show available ressources
This can be done using the -a option.
2018-08-02 17:28:58 +02:00
Victor LABORIE bf385b9749 Rename script without extension and make them executable 2018-07-27 11:50:28 +02:00
Renamed from kvmstats.sh (Browse further)