Add check-cpu-temp.ps1

This commit is contained in:
Markus Fleschutz
2021-03-20 16:13:54 +01:00
parent 85d3137b14
commit 1fc4d5af0e
6 changed files with 32 additions and 3 deletions

View File

@ -27,7 +27,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 - $Free GB free swap space ($Used GB used out of $Total GB, minimum is $MinLevel GB)"
write-host -foregroundColor green "OK - swap space has $Free GB left ($Used GB used out of $Total GB, minimum is $MinLevel GB)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"