Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to write a script that takes data about reliability of Windows services (default and custom) and forwards them to a central server for processing. My problem is that I am not sure what log files track this. The data I need to track is when the services boot, when they close, and whether they close successfully or with an error code (and what that error code is). Any help is greatly appreciated.



I need to keep track of the background services running on a windows 7 or XP machine (what linux calls daemons).

share|improve this question
up vote 1 down vote accepted

In my experience most services do not log when they start/stop. Some certainly do and often you'll see that information in the system or application log. We track this externally. We use a tool to check the server regularly to see if a service is running and if not, make a note of it. For us this is done using Nagios and the various check_ tools. In my opinion you are better using existing tools for this rather than invent your own.

share|improve this answer
I'm not sure I was completely clear. We are not dealing with a Windows Server machine, but rather a simple XP or 7 machine. what I need to track are windows background services (daemons if this were linux). Does windows really not keep a log of these? That would seem like a tremendous fault in the OS. @uSlackr – ewok Aug 31 '11 at 14:21
Like Linux, the service or process author chooses what to write to the log. – uSlackr Aug 31 '11 at 20:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .