Update the scripts

This commit is contained in:
Markus Fleschutz 2021-10-19 09:43:25 +02:00
parent 3dcc84e4dd
commit c05fcfe32b
6 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ try {
} elseif ($Temp -gt 50) {
"✔️ CPU has $Temp °C: quite high"
} elseif ($Temp -gt 0) {
"✔️ CPU has $Temp °C: good"
"✔️ CPU has $Temp °C"
} elseif ($Temp -gt -20) {
"✔️ CPU has $Temp °C: quite low"
} else {

View File

@ -31,7 +31,7 @@ try {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
$Average = [math]::round($Count / $Elapsed, 1)
"✔️ DNS resolves $Average domains/sec ($Count domains in $Elapsed sec)"
"✔️ DNS resolves $Average domains/sec ($Count in $Elapsed sec)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"

View File

@ -30,7 +30,7 @@ try {
write-warning "Drive $Drive has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
exit 1
}
"✔️ Drive $Drive has $Free GB left ($Used of $Total GB used)"
"✔️ Drive $Drive has $Free GB left ($Total GB total)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"

View File

@ -47,7 +47,7 @@ if ($IsLinux) {
$Hostname = $(hostname)
if ($Healthy) {
"✔️ $Hostname is healthy"
"✔️ $Hostname seems healthy"
exit 0 # success
} else {
write-warning "$Hostname is NOT healthy"

View File

@ -37,7 +37,7 @@ try {
}
$Avg = $Avg / $Pings.count
"✔️ Ping is $Avg ms average ($Min ms min, $Max ms max, using $($Pings.count) hosts)"
"✔️ Ping is $Avg ms average ($Min ms min, $Max ms max, $($Pings.count) hosts used)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"

View File

@ -39,7 +39,7 @@ try {
write-warning "Swap space has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
exit 1
}
"✔️ Swap space has $Free GB left ($Used of $Total GB used)"
"✔️ Swap space has $Free GB left ($Total GB total)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"