Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbres committed Aug 5, 2024
1 parent 637018d commit c04ab0a
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Windows Service Monitor

This application runs as a Windows Service and is designed to monitor and manage the health of a specified service. It performs this task by either probing a TCP port to ensure it is listening or by making an HTTP request to check for a successful status code or the presence of a specific word in the response. If the monitored service is found to be unhealthy, the application will automatically restart it.
This application runs as a Windows Service and is designed to monitor and manage the health of a specified service(s). It performs this task by either probing a TCP port to ensure it is listening or by making an HTTP request to check for a successful status code or the presence of a specific word in the response. If the monitored service is found to be unhealthy, the application will automatically restart it.

### Configuration required:
V1

```json

Expand All @@ -26,7 +27,36 @@ This application runs as a Windows Service and is designed to monitor and manage
}

```

V2
```json
{
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"Configuration": {
"RunIntervalSeconds": 30,
"Services": [
{
"ServiceName": "YourServiceName",
"IpAddress": "127.0.0.1",
"Port": 8080
},
{
"ServiceName": "YourServiceName",
"HttpUrl": "http://localhost:3000/api/health",
"WordToCheck": "Healthy"
},
{
"ServiceName": "YourServiceName",
"HttpUrl": "http://localhost:3000/noword"
}
]
}
}
```


---
Expand Down

0 comments on commit c04ab0a

Please sign in to comment.