Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zimbres/servicemonitor
Monitor Windows service
https://github.com/zimbres/servicemonitor
monitoring service windows windows-service
Last synced: 6 days ago
JSON representation
Monitor Windows service
- Host: GitHub
- URL: https://github.com/zimbres/servicemonitor
- Owner: zimbres
- License: mit
- Created: 2024-08-03T02:43:54.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T00:51:11.000Z (about 2 months ago)
- Last Synced: 2024-12-24T12:18:41.086Z (11 days ago)
- Topics: monitoring, service, windows, windows-service
- Language: C#
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Windows Service Monitor
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
{
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"Configuration": {
"RunIntervalSeconds": 30,
"ServiceName": "YourServiceName",
"IpAddress": "127.0.0.1",
"Port": 8080,
"HttpUrl": "http://localhost:8080/api/health",
"CheckForWord": false,
"Word": "",
"CheckType" : "Tcp"
}
}```
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"
}
]
}
}
```---
[Microsoft Help: Create Windows Service](https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service)
---
### Requires .Net Runtime 8.0
[Download .NET](https://dotnet.microsoft.com/en-us/download)
---
Application icon by [Flaticon](https://www.flaticon.com/br/icones-gratis/marketing-de-midia-social)