Its a windows service which pings the web site periodically and if it is down then it triggers mail to configured recipient list
############################################################################################################################### Windows Service Pings the site periodically If site is down or unreachable, then the service will trigger mail to the recepient list configured in APP.CONFIG ###############################################################################################################################
- Clone the repository
- Build the project
- On successfull build, exe file will be generated in Bin -> Debug folder
- Open visual studio command prompt and
- Run the below command by replacing the path of the project
- installutil /i \bin\Debug\WebStatusCheckerService.exe
-
To change the service name and type i. Open ProjectInstaller.Designer.cs file and change the service name object ii. StartType object in the same file for the service startup type iii. Account type object for the service login account type
-
To change the site details i. Open the App.Config and find the appsettings with key = "Parameters" ii. Its value is in JSON format with escape string formatted. The similar model can be find the project under model folder. iii. It can contain many sites and recepient list seperated by comma.