Profile cover photo
Profile photo
Robert Knott
About
Posts

Post has attachment
NASA-Technologie hat es dann endlich in den letzten Winkel der Welt geschafft.
Add a comment...

Post has attachment

Post has attachment
Guckbefehl!
Add a comment...

Post has attachment
kknp
Add a comment...

Post has attachment
Photo
Add a comment...

Post has attachment
Merry Christmas!
Add a comment...

Post has attachment
'MURICA!
Add a comment...

Post has attachment
Maybe we have different notions of a monitor. I also do not understand why I get an email when $process is active. Is it not better to let me know if something does not work :)
This is my monitor as it is already being used successfully. Checks every 30 seconds my specified processes. Here is just one as example

do{
$process_calc = Get-Process calc -ErrorAction silentlycontinue
if ($process_calc) {
    Write-Host "Calc is running. " -foregroundcolor "green" -NoNewline
    Write-Host "Last Crash: $date_calc" -foregroundcolor "red"
}
else {
    $date_calc = Get-Date
    Write-Host "Looks like calc is offline. Restarting..." -foregroundcolor "red"
    Start-Process calc.exe
    <#Here you could send your e-mail#>
}
sleep 30
cls
}until ($end -eq "of days")
Add a comment...

Post has attachment

Post has attachment
Noch mehr Fortschritt! Nun hat es da schon eine Treppe :)
Photo
Add a comment...
Wait while more posts are being loaded