Categorygithub.com/codemonauts/simple-systemd-monitoring
repositorypackage
0.6.0
Repository: https://github.com/codemonauts/simple-systemd-monitoring.git
Documentation: pkg.go.dev

# 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. 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.
  • 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.