Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks

Clarification

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.