Re: Monitoring windows services

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"BC" <nospam@xxxxxxxxxx> wrote in message
news:eZT4tT20FHA.2932@xxxxxxxxxxxxxxxxxxxxxxx
> 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 windows service? Any related
> articles will be great.
>
>
> Cheers,
>
> Benny
>
> *** Sent via Developersdex http://www.developersdex.com ***

What exactly do you mean with "monitor", if you didn't implement your
service such that it could be monitored there is very little to be
monitored. Sure you can control the state of the service, like starting
stopping etc. but if you need to monitor it's activity you should expose
some objects and/or counters data, lets say the number of MSMQ processed
sent so far.
You have several options depending on your requirements, but you will need
to add some code to your service; the easiest is to publish performance
objects through private performance counters and use the performance monior
to watch these counters.
Another option is to use System.Management classes to expsose performance
objects or state info by publishing these objects through the WMI system,
this is the way most Msft services like IIS, ASP.NET, SQL Server... publish
their state/performance data. Any client (.NET using System.Management and
others using COM and or scripting) can be built to query the exposed
objects. Note that the latter option can also be used to manage the service.


Willy.


.



Relevant Pages

  • Re: EXE at server
    ... This executable will show an interactive presentation on a monitor. ... Is it possible to get the server to run the program, ... interacttive presentation at a client machine? ...
    (comp.programming)
  • Re: Question about monitoring in SBS2K3 Prem. vs. SBS2K
    ... The fact that the Server Status snap-in has been ... useless Health Monitor. ... > Microsoft CSS Online Newsgroup Support ... > This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Health Monitor
    ... I see that health monitor is installable from the SBS CD's and it does give ... monitor can be installed on member server and get performance reports. ... we can not install the health monitor on the member ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 Extended Server usage Report
    ... Health Monitor and Performance Monitor are different tools. ... Health Monitor is a service in Small Business Server 2000 or Small Business ... help to gather information for reporting. ... Click Server Usage Report and click Edit. ...
    (microsoft.public.windows.server.sbs)
  • Re: RWW Timing
    ... Thanks for using the SBS newsgroup! ... I understand that you want to monitor when and how ... First I would like to explain how RWW works when a remote client connects ... to an internal Windows XP or Terminal Server computer. ...
    (microsoft.public.windows.server.sbs)