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 5 1884
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
Wally,
In addition to Dan's comments, you can use WMI (Windows Management
Instrumentation ) via the classes in the System.Manageme nt 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.Diagnost ics.EventLog & System.Diagnost ics.Performance Counter.
Hope this helps
Jay
"Wally" <va****@nospamc ambieri.it> wrote in message
news:J_******** ************@ne ws4.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
"Wally" <va****@nospamc ambieri.it> wrote in message news:<J_******* *************@n ews4.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.
"Zack Sessions" <zc********@vis ionair.com> ha scritto nel messaggio
news:db******** *************** ***@posting.goo gle.com... "Wally" <va****@nospamc ambieri.it> wrote in message
news:<J_******* *************@n ews4.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
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****@nospamc ambieri.it> wrote in message
news:J_******** ************@ne ws4.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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)?
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! :-)
|
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
|
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 exactly as expected.
I also have an application that monitors that service using the
ServiceController component, and allows me to start & stop the service as
needed, as well as poll for it's current status. Still everything thus far
works and...
|
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 and does some process.
What I want to do now is create a small windows application that sits on
the client machine and monitor the activities of the windows service.
I am using Visual Studio .NET 2003 with C#.
The question is how can I monitor a...
|
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
access is denied.
I am running windows 2003 sp1. Network Service account do have full
permission on application folder and sub folder.
| |
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
exists this service will automatically FTP to another machine,and if no
file&& no changed it still watching when changing/new exists.
The question is How to create the program like this as Windows Service?
What API name could be used in...
|
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 seconds:
Check to see if each of the other executables are running or not. If
they are not running, it should load them.
For this purpose, I am planning the following:
|
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...
|
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 usually stick
to the Linux world):
1 - Is it possible for a service to monitor which users are currently
logged on the system?
2 - Is it possible for a service to logout an undesirable user?
3 - Can it even shut down the system if need be (ex: halt...
|
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?
|
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...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |