simple-systemd-monitoring

command module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址