473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.

Nov 21 '05 #1
2 1226
why not have a LISTENER/Client (TCPIP)?

Monitor would be the listener and apps would be clients. They'd just need
the monitor's IP.

Is this possible?

Thanks,

Shane

ps. just an Idea
<ar*******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.

Nov 21 '05 #2
Have the running apps log an event, then remotely read the event logs and
scan for the messages. If you dont see them its not running(or at least
properly). If they have write they can even log the messages to the machine
your monitoring and to a specific log(instead of the standard logs). this
way you dont have to read through huge files.

You can also use SMNP traps as well.

"Shane Story" <sh**************@dv-corp.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
why not have a LISTENER/Client (TCPIP)?

Monitor would be the listener and apps would be clients. They'd just need
the monitor's IP.

Is this possible?

Thanks,

Shane

ps. just an Idea
<ar*******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: The Roys | last post by:
Hi Im doing something wrong in quitting the Word.Application in my VB program. I have General Declarations Dim AppWord As Word.Application Form_Load() Set AppWord =...
7
by: sayoyo | last post by:
Hi, Is there some way that we can reuse a thread by replacing the runnable object of the thread? like a thread is not "alive" anymore, then we remove the runnable object(is it possible????) and...
3
by: Henne | last post by:
Hello, in VB6 we werr able to make ActiveX-DLL's (In Process Components) and ActiveX-Exe (Out Of Process Components). Out Application is build of one main application that starts other...
1
by: M D | last post by:
If you want more details you will have to reference the VS.Net example ConsoleChat for Networking How-to: -- http://go.microsoft.com/fwlink/?linkid=3480&path=/quickstart/howto/sampl...
0
by: Owen | last post by:
Hello everyone, I am using VS.NET 2003(Trandition Chinese) Edition, and httpLook software for checking http requests. I found a problem that the following programs don't really "POST". These...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
1
by: Joe Peterson | last post by:
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is...
4
by: Morgan Cheng | last post by:
Days ago, I post a question on how to make SoapHttpClientProtocol instance make new TCP connection for each web service request. Now, I found how. SoapHttpClientProtocol has a protected method...
4
by: AliRezaGoogle | last post by:
Dear Members I have a critical program written in c#. It runs every time the user log on. But sometimes log-oned user forces my application process to quit by “End Process” in task manager. How...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.