By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,278 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,278 IT Pros & Developers. It's quick & easy.

Monitoring windows service

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
"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

P: n/a

"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

P: n/a
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.