473,472 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Nov 21 '05 #1
5 1866
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

Nov 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

Nov 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.
Nov 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
Nov 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

Nov 21 '05 #6

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

Similar topics

5
by: Wally | last post by:
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)?...
1
by: Sylesh Nair | last post by:
could anyone give me a possible solution for a Windows Service (in C#) listening to a table in a database for insertion or updation. thanks
3
by: JSheble | last post by:
I have a windows service that in the OnStart it creates a thread and runs a loop forever and ever, assuming the service is running. The loop stops during the OnStop event, and everything works...
3
by: BC | last post by:
Hi all, I have a windows service (on client machine) that monitors a MSMQ queue (on server machine). When a new message is in the server queue, the client windows service will get the message...
1
by: amit.vasu | last post by:
Hi I have created a web serivces using .net framework 2.0. When I try to execute the web service I get the following error. Failed to start monitoring changes to 'e:\Default Web Site' because...
1
by: zdk | last post by:
Now I've critical problem with my system and the limitation of Windows Task Schedule,so I need to code a windows service that can monitoring/watching files in directory if new file or file changed...
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
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...
0
by: mlavoi | last post by:
I'm currently considering writing a Windows service to accomplish system monitoring tasks related to security and users. However I have a few questions (I'm new to writing Windows services, I...
7
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can we monitor whether certain website is working or not. We want to do this every minute. Can we write something, or should go for thirdparty vendors?
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
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...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.