G
Guest
I have a function I've written that monitors an application (server). If it
goes down, I send out an email SMTP within our WAN.
Is there a way to monitor this app from a different PC witihin our WAN?
Here's the function I've been using:
Private Function IsProcessRunning(ByVal sProcessName As String) As Boolean
Dim pr As System.Diagnostics.Process
IsProcessRunning = False
For Each pr In Process.GetProcesses
Try
If Trim(UCase(pr.ProcessName)) = Trim(UCase(sProcessName))
Then
If Not pr.HasExited() AndAlso pr.Responding Then
IsProcessRunning = True
End If
End If
Catch ex As Exception
'Handle error
End Try
Next pr
End Function
How would I specify to check running processes on a different PC in our
network?
goes down, I send out an email SMTP within our WAN.
Is there a way to monitor this app from a different PC witihin our WAN?
Here's the function I've been using:
Private Function IsProcessRunning(ByVal sProcessName As String) As Boolean
Dim pr As System.Diagnostics.Process
IsProcessRunning = False
For Each pr In Process.GetProcesses
Try
If Trim(UCase(pr.ProcessName)) = Trim(UCase(sProcessName))
Then
If Not pr.HasExited() AndAlso pr.Responding Then
IsProcessRunning = True
End If
End If
Catch ex As Exception
'Handle error
End Try
Next pr
End Function
How would I specify to check running processes on a different PC in our
network?