Thursday 3 December 2009

Windows Service Monitor ...

.NET makes life lot lot easier at times. Recently I came across a requirement where it is required to monitor the installed windows services and send a notification (via Email or an SMS) to designated people letting them know that a windows service of interest got stopped.

I searched for a freeware in Google and found that all the products out there can send an email when a service "fails" not when a service is stopped.

I ended up writing a small windows based application that looks like below:




The program monitors the selected services at regular intervals of time (configurable) and sends an email when a selected service is stopped (one email per service).

The source code for the above program is here.

0 comments: