progress
This commit is contained in:
parent
e295aa8dff
commit
80bbf47755
@ -1 +1 @@
|
|||||||
0.7.9
|
0.8.1
|
||||||
|
|||||||
@ -34,6 +34,8 @@ Hosts="${Hosts} cvtt-prod-01.cvtt.vpn"
|
|||||||
Hosts="${Hosts} cvtt-prod-02.cvtt.vpn"
|
Hosts="${Hosts} cvtt-prod-02.cvtt.vpn"
|
||||||
Hosts="${Hosts} cvtt-prod-03.cvtt.vpn"
|
Hosts="${Hosts} cvtt-prod-03.cvtt.vpn"
|
||||||
|
|
||||||
|
Metrics=()
|
||||||
|
|
||||||
function space_alert() {
|
function space_alert() {
|
||||||
ALERT_USAGE=75%
|
ALERT_USAGE=75%
|
||||||
for ln in "${Measurements[@]}"
|
for ln in "${Measurements[@]}"
|
||||||
@ -52,6 +54,7 @@ function storage_check() {
|
|||||||
|
|
||||||
result_lines=()
|
result_lines=()
|
||||||
|
|
||||||
|
declare -a SingleMeas
|
||||||
for host in ${Hosts}
|
for host in ${Hosts}
|
||||||
do
|
do
|
||||||
if [[ "${host}" == *"cryptovaltrading.com" ]]; then
|
if [[ "${host}" == *"cryptovaltrading.com" ]]; then
|
||||||
@ -70,7 +73,12 @@ function storage_check() {
|
|||||||
do
|
do
|
||||||
IFS=$' '; args=($ln); unset IFS
|
IFS=$' '; args=($ln); unset IFS
|
||||||
res="${args[5]}| **${host}** | ***${args[6]}*** | *${args[5]}* |"
|
res="${args[5]}| **${host}** | ***${args[6]}*** | *${args[5]}* |"
|
||||||
|
|
||||||
result_lines+=("$res")
|
result_lines+=("$res")
|
||||||
|
|
||||||
|
fs=${args[6]}
|
||||||
|
used=${args[5]}
|
||||||
|
Metrics+=("$host $fs $used")
|
||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user