https://github.com/codemonauts/simple-systemd-monitoring
Simple tool to check if a systemd service is running and otherwise create an incident
https://github.com/codemonauts/simple-systemd-monitoring
hacktoberfest monitoring
Last synced: about 2 months ago
JSON representation
Simple tool to check if a systemd service is running and otherwise create an incident
- Host: GitHub
- URL: https://github.com/codemonauts/simple-systemd-monitoring
- Owner: codemonauts
- License: mit
- Created: 2018-07-25T22:57:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T09:49:53.000Z (almost 4 years ago)
- Last Synced: 2025-03-11T19:49:18.830Z (over 1 year ago)
- Topics: hacktoberfest, monitoring
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-systemd-monitoring
Simple tool to check if one or more systemd services are running and otherwise create an incident via PagerDuty or VictorOps
## Get API credentials for PagerDuty
Create a new service with the integration type `APIv2` at the [PagerDuty website](https://codemonauts.pagerduty.com/services). This should give you an `integration-key`.
## Get API credentials for VictorOps
Login to VictorOps and visit `Settings -> API` which shows your `api-id`. To get a new `api-key` simly press the `+ New Key` button at the end.
## Installation
* Download and compile the code with `go get github.com/codemonauts/simple-systemd-monitoring` or use the [precompiled binaries](https://github.com/codemonauts/simple-systemd-monitoring/releases).
* Run the code with
```
./simple-systemd-monitoring -customerName Somebody -integration-key foobarbaz42 -name nginx.service -duration 30s
```
or use the provided `simple-systemd-monitoring.service` file.
The `-name` flag can be used multiple times to monitor more services.