Watch-dog design service

I am working on an inherited product that has seven Windows services and a user interface. There are some errors in the services that lead to a crash every 10-15 days. I need to write an application to monitor the status of services. If the services break, I need to send an email to the administrator to start the services.

I cannot use the automatic recovery process, because during some failures, the Microsoft error report dialog box or some other dialogs appear, and the service is considered to be running until the message is confirmed.

So, I plan to go to this individual / watch -service application to monitor failures until the errors in the original services are completely fixed.

Please share your views on the design of the watchdog service.

Thank.

+3
source share
4 answers

You doubt that Windows Service Restore does not start because the error dialog box is not displayed. You might need to find something that the error dialog is open, and click the button. In this way, the service can shut down successfully, and the recovery of the Windows service can stop.

, , . , . , , clickInfo .

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="clickConfiguration" type="ClickButton.ClickConfigurationSection, ClickButton"/>
  </configSections>
  <clickConfiguration>    
    <clickInfo windowName="ClearCase" buttonName="Proceed" />
  </clickConfiguration>  
</configuration>

, !

+1

, , , dialouge. , , .
, , . , , , .

+2

, "" HTTP- , - -, , (). -, , "" .

: http://www.setcronjob.com/, http://www.webcron.org/, http://scheduler.codeeffects.com. HTTP- , . , .

0

It's funny how you need to manually edit the registry to disable Drwatson, and there is a command line to enable it;) here, check this Microsoft KB: http://support.microsoft.com/kb/188296

-1
source

Source: https://habr.com/ru/post/1734997/


All Articles