Add check-ping.ps1

This commit is contained in:
Markus Fleschutz
2021-03-30 09:06:30 +02:00
parent 3a0daeb85a
commit 67f114831d
6 changed files with 35 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ try {
write-warning "Swap space has only $Free GB left to use! ($Used GB out of $Total GB in use, minimum is $MinLevel GB)"
exit 1
}
write-host -foregroundColor green "OK - swap space has $Free GB left ($Used GB of $Total GB used)"
write-host -foregroundColor green "OK - $Free GB left on swap space ($Used GB of $Total GB used)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"