469,954 Members | 1,812 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,954 developers. It's quick & easy.

Monitoring windows service

Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV
Jul 21 '05 #1
5 1460
One option would be to use .Net remoting. Your service could exposes a number
of methods, via remoting, that can be called by a monitoring application to
check its health. It depends on what you want to do.

Hope this helps.
Dan

"Wally" wrote:
Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV

Jul 21 '05 #2
Wally,
In addition to Dan's comments, you can use WMI (Windows Management
Instrumentation) via the classes in the System.Management namespace to
monitor your windows service.

Here is a recent MSDN article on WMI & .NET:

http://msdn.microsoft.com/vstudio/de...ml/vs04d6a.asp

In addition to/instead of WMI you can also simply use Performance Counters &
Event Logs to keep track of your service doing work. See
System.Diagnostics.EventLog & System.Diagnostics.PerformanceCounter.

Hope this helps
Jay

"Wally" <va****@nospamcambieri.it> wrote in message
news:J_********************@news4.tin.it...
Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV

Jul 21 '05 #3
"Wally" <va****@nospamcambieri.it> wrote in message news:<J_********************@news4.tin.it>...
Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV


That is something I too am interested in so I will be following this
thread with interest. One thing I have discovered, a good way to debug
a Windows Service is to use the Event Log for debugging messages.
Jul 21 '05 #4

"Zack Sessions" <zc********@visionair.com> ha scritto nel messaggio
news:db**************************@posting.google.c om...
"Wally" <va****@nospamcambieri.it> wrote in message

news:<J_********************@news4.tin.it>...
Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something? Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV


That is something I too am interested in so I will be following this
thread with interest. One thing I have discovered, a good way to debug
a Windows Service is to use the Event Log for debugging messages.


Hi!
Event Log could be a good way, but It has limitations: if you want to read
logs not using polling but using events (EntryWritten), you can only read
logs on local machine. Then, I seems to have read that if one log event is
near the log event before (less than 10 sec.) is possible that you won't be
notify.
In my opinion, best way to monitoring service is using Socket or WMI.
Hope this help.

VV
Jul 21 '05 #5
There are a couple of things that can be done.
Monitor the service for state (stopped, stopping, starting started),
Use the Performance counters ( if the service writes them ) to setup
thresholding and alerting, warning, it would be best to watch the counters
for a time, to understand behavior.

"Wally" <va****@nospamcambieri.it> wrote in message
news:J_********************@news4.tin.it...
Hi

Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?

Thank in advance
and... sorry for my english, but I'm Italian! :-)

VV

Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sylesh Nair | last post: by
3 posts views Thread by JSheble | last post: by
5 posts views Thread by Wally | last post: by
1 post views Thread by Water Cooler v2 | last post: by
reply views Thread by Kursat | last post: by
reply views Thread by mlavoi | last post: by
7 posts views Thread by =?Utf-8?B?cmtibmFpcg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.