Update check-health.ps1

This commit is contained in:
Markus Fleschutz 2021-12-03 10:13:59 +01:00
parent 6a7971267c
commit ee6ae12f5e

View File

@ -20,22 +20,12 @@
& "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-operating-system.ps1"
& "$PSScriptRoot/check-swap-space.ps1"
if ($lastExitCode -ne "0") { $Healthy = 0 }
if ($IsLinux) {
& "$PSScriptRoot/check-drive-space.ps1" /
if ($lastExitCode -ne "0") { $Healthy = 0 }
} else {
& "$PSScriptRoot/check-drive-space.ps1" C
if ($lastExitCode -ne "0") { $Healthy = 0 }
}
& "$PSScriptRoot/check-drives.ps1"
& "$PSScriptRoot/check-cpu.ps1"
& "$PSScriptRoot/check-dns.ps1"
& "$PSScriptRoot/check-ping.ps1"
& "$PSScriptRoot/check-vpn.ps1"
if ($IsLinux) {
& "$PSScriptRoot/check-smart-devices.ps1"
if ($lastExitCode -ne "0") { $Healthy = 0 }
}
exit 0 # success