473,666 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application monitoring, how?

Bob
I've got dot net Winform apps that are running in a backroom server with no
user interaction. They are supposed to run unattended 24 7 365. They are IVR
apps taking orders via telephony. Problem is nobody is looking at them to
know if they are OK. They have err trapping built in and there's logging and
tracing to log files, but nobody there looks at that. What I need is to find
a way to advise one or more managers immediately when an app is hanging or
if an unhandled exception occurred. Handled exceptions are easy, I could
just send them an e-mail. Unhandled execptions are a problem, app hangs, so
you can't execute code that sends en e-mail, its hung. So no one sees it and
no one knows.They only realise after a few hours of info not coming in, then
its easy to fix and restart app. But this is far from ideal. Want to find a
way to alarm admins immediately as problem occurs. Could be things like bad
network connection causing it, stuff unforeseen. Anyone have any ideas on
how to do this? Any help would be greatly appreciated.

Bob
Nov 21 '05 #1
4 1553
Try something like this:

'Variable to hold individual Process
Dim objProcess As New Process
'Collection of Processes
Dim objProcesses() As Process
'Put all the processes by a specific name in the collection
objProcesses = Process.GetProc esses()

'Cycle through all the processes
For Each objProcess In objProcesses
If Not objProcess.Resp onding Then
'Go notify administrators.
End If
Next

Nov 21 '05 #2
Bob
thanks, i'll give it a try.
bob
"Markis Taylor" <do*********@gm ail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com...
Try something like this:

'Variable to hold individual Process
Dim objProcess As New Process
'Collection of Processes
Dim objProcesses() As Process
'Put all the processes by a specific name in the collection
objProcesses = Process.GetProc esses()

'Cycle through all the processes
For Each objProcess In objProcesses
If Not objProcess.Resp onding Then
'Go notify administrators.
End If
Next

Nov 21 '05 #3
www.logicielsjupiter.com

The company just started, but their product is just fantastic and
expandable... They have a module just for what you need... monitoring
processes... and with it you can send e-mail, start another application or
even send a SMS message and there are more to come...

I hope it helps

"Bob" <bd*********@sg iims.com> a écrit dans le message de
news:OG******** ******@TK2MSFTN GP12.phx.gbl...
I've got dot net Winform apps that are running in a backroom server with no user interaction. They are supposed to run unattended 24 7 365. They are IVR apps taking orders via telephony. Problem is nobody is looking at them to
know if they are OK. They have err trapping built in and there's logging and tracing to log files, but nobody there looks at that. What I need is to find a way to advise one or more managers immediately when an app is hanging or
if an unhandled exception occurred. Handled exceptions are easy, I could
just send them an e-mail. Unhandled execptions are a problem, app hangs, so you can't execute code that sends en e-mail, its hung. So no one sees it and no one knows.They only realise after a few hours of info not coming in, then its easy to fix and restart app. But this is far from ideal. Want to find a way to alarm admins immediately as problem occurs. Could be things like bad network connection causing it, stuff unforeseen. Anyone have any ideas on
how to do this? Any help would be greatly appreciated.

Bob

Nov 21 '05 #4
two ways to do this:
External monitoring of response
and
External monitoring of messages

If you app is locked up, all of the techniques that would live within your
app will fail.

External monitoring of response requires that you provide an interface for
your app that another app will call. When I've done this, I've called it
"healthchec k" but others have called it "ping" or even "verifysani ty". The
point is that you provide an interface. I would suggest that .Net Remoting
is an excellent technique for exposing this interface. Then you need to
have a small, external app that hits this interface once a minute or so to
see if there is a response. If not, that external app can send warnings or
even reset the app itself.

External monitoring of messages requires that you log messages to a log
location that another process watches. That other process looks for
messages that indicate failure and raises an alarm. SMS is very good at
doing this, and if your organization uses Microsoft Operations Manager, you
can wire up a solution with no code, as long as you are already throwing
messages to the event log.

Hope this helps,

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Bob" <bd*********@sg iims.com> wrote in message
news:OG******** ******@TK2MSFTN GP12.phx.gbl...
I've got dot net Winform apps that are running in a backroom server with
no user interaction. They are supposed to run unattended 24 7 365. They
are IVR apps taking orders via telephony. Problem is nobody is looking at
them to know if they are OK. They have err trapping built in and there's
logging and tracing to log files, but nobody there looks at that. What I
need is to find a way to advise one or more managers immediately when an
app is hanging or if an unhandled exception occurred. Handled exceptions
are easy, I could just send them an e-mail. Unhandled execptions are a
problem, app hangs, so you can't execute code that sends en e-mail, its
hung. So no one sees it and no one knows.They only realise after a few
hours of info not coming in, then its easy to fix and restart app. But
this is far from ideal. Want to find a way to alarm admins immediately as
problem occurs. Could be things like bad network connection causing it,
stuff unforeseen. Anyone have any ideas on how to do this? Any help would
be greatly appreciated.

Bob

Nov 21 '05 #5

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

Similar topics

13
9220
by: ulysses | last post by:
Hi,all I use wxPython make a bittorrent client. I find wxPython very slow and use many many memory. When app start, it need 19MB memory. I only use common GUI components. Python is a really good programming language. But how to do a small,smart, efficency GUI in win32,it's a big question. I need make GUI,core code is bittorrent code. I can't change it.it's
1
3873
by: Ron | last post by:
I am trying to run asp.net pages. The server is accessed via http://sitename/username I have verified it is using port 80 and aspx extensions are configured. But when I run and asp.net page I get the following error: Invalid file name for monitoring: 'E:\'. File names for monitoring must have absolute paths, and no wildcards. Description: An unhandled exception occurred during the
2
3853
by: Jacek Jurkowski | last post by:
Could anybody help me to write proper code to restart my application? public static void OnRestartRequest() { ... } Restart is needed after exception handled and may occur anytime in application life time ...
0
1615
by: Ron Simpson | last post by:
I am trying to run asp.net pages. The server is accessed via http://sitename/username I have verified it is using port 80 and aspx extensions are configured. But when I run and asp.net page I get the following error: Invalid file name for monitoring: 'E:\'. File names for monitoring must have absolute paths, and no wildcards. Description: An unhandled exception occurred during the
2
1793
by: Steven | last post by:
Hi, I have a program that monitors a few running applications. This monitoring program does not itself start these running applications. My question is how can the monitoring program detect that a running application has been closed without doing some kind of polling? Thanks, Steve
3
1737
by: Glyn Simpson, MVP | last post by:
Hi I've got an ASP.NET 2.0 application, and I would like to catch the scenario of when I get a certain number of application errors, I want to restart the application (similar to 'touching' web.config). However, I don't have access to IIS, nor can I FTP in a new web.config file to force the application to restart.I can't see any way at the moment to do this through code, which would be good, as I can then restart it remotely (through...
0
1342
by: Kevin A | last post by:
The problem is that the web application mysteriously shuts down (ending all sessions) due to a supposed 'configuration change'. By using ASP.Net Health Monitoring we can determine that the application occasionally raises a "Application is shutting down. Reason: Configuration changed." event during normal application usage. The only known way to duplicate this event is to manually save the web.config, which correctly triggers the event as...
0
1021
by: Kursat | last post by:
Hi, We have a network monitoring application wich generates some messages at unpredictable times. Our Windows Forms based client applications grab these messages and show them our clients. We want to build a web based architecture to implement same logic. We want our clients to watch monitoring messages on their browser window. I focused Ajax and async web service calls but I also see that clients can call a web service method...
1
4228
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. TimeLive is available in two different flavors. Hosted version and downloadable version. Downloadable version required certain system requirement to install on local server. Whereas hosted version is already installed on our fully managed server on...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.