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.

We currently have a service that is failing and need to be notified when it does. How to set up the service to send an email when it fails.

share|improve this question
1  
What have you tried so far? –  Dave Apr 26 '13 at 14:45
    
Is it a third party service or something you are developing? If it is a common service, what's its name/purpose? –  Jan Doggen Apr 26 '13 at 15:04
    
Is a commercial solution OK? –  CoreTech Apr 26 '13 at 18:41

1 Answer 1

It is easy to get a Windows Service to run a program when it fails. Go to the Services snap-in, find the service, double click, and go to the Recovery tab. There you can choose what happens when it fails.

One of the options is Run a Program. You can write a script or program that sends an email, and simply point this at it. An easy way is to use Windows' wscript. See link.

Service Control Dialog

share|improve this answer

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.