Knowing if application is "alive"



I have 4 applications which are supposed to run 24/7. How can I make a
monitor application to know if they're running fine?

The best I can come up with is making them update a file/DB every X
amount of time and have the monitor app check that mark. If the mark
haven't updated then it means the program stopped. The programs do
their thing multithreaded so we don't have the problem of waiting for
the main thread to finish.

But this is so rustic that I think there's got to be a better way.
I'm hoping of something like sending an event over the network from the
running app to the monitor. This way the monitor will just sit there
listening to the other apps and if it stops receiving a message the
notify it.

.



Relevant Pages

  • Re: WScript.Shell.Exec().StdOut.AtEndOfStream waits for text - solution
    ... Execute the monitor. ... Read output from the app. ... Read output from the monitor. ... If the process terminates, the monitor ...
    (microsoft.public.scripting.jscript)
  • Re: Desktop heap monitoring
    ... I have an application that will let you set watch limits on usage: ... The app was developed for me to monitor a memory leak I had in an ActiveX ...
    (microsoft.public.vb.winapi)
  • Re: How to get closing times of applications using shell
    ... vinod wrote: ... like to know how long each app is being used and when.. ... You write that you want to monitor _a_ user, ... few wrapper scripts manually, as already outlined upthread. ...
    (comp.unix.shell)
  • Re: Serial port monitoring
    ... app, then you can do this yourself by handling the result from ReadFile. ... there are several commercial ones available (try google for serial port monitor), ...
    (microsoft.public.vc.mfc)
  • Re: Help needed: TCP Server questions/problems
    ... Have a look at remoting for the monitoring of you app. ... have permissions on the file system. ... I know very little about writing server applications. ... I would like to be able to monitor what it is doing. ...
    (microsoft.public.dotnet.languages.vb)