473,372 Members | 1,331 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,372 software developers and data experts.

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 1544
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.GetProcesses()

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

Nov 21 '05 #2
Bob
thanks, i'll give it a try.
bob
"Markis Taylor" <do*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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.GetProcesses()

'Cycle through all the processes
For Each objProcess In objProcesses
If Not objProcess.Responding 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*********@sgiims.com> a écrit dans le message de
news:OG**************@TK2MSFTNGP12.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
"healthcheck" but others have called it "ping" or even "verifysanity". 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*********@sgiims.com> wrote in message
news:OG**************@TK2MSFTNGP12.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
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...
1
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...
2
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...
0
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...
2
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...
3
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'...
0
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...
0
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...
1
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. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.