servmon command - github.com/jmainguy/servmon - Go Packages

servmon

command module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: GPL-2.0 Imports: 13 Imported by: 0

README

servmon

Go Report Card Release Coverage Status

A service monitor written in go

Usage

You will need to provide a monitor.yml of your own, customized to your needs.

You will also need to set a number of environmental variables.

export SERVMONDIR=/opt/servmon
export SLACK_TOKEN=adssadasasdsa
export SLACK_CHANNEL=C02U1PAFP8Q
servmon

NOTE: In order for servmon to function you'll also need to put a monitor.yml file and the template.html file in the directory specified by $SERVMONDIR. Examples of both are included in this repository.

PreBuilt Binaries

Grab Binaries from The Releases Page

Podman
# if running podman on arm64
podman run --name servmon -d \
  -p 8080:8080 \
  -v $(pwd)/monitor.yml:/monitor.yml \
  --env SLACK_TOKEN=xoxb-1986333393-gRNl6nANyVXhSGKJGDc9QHsa \
  --env SLACK_CHANNEL=C02U1PAFP8Q \
  zot.soh.re/servmon:latest-arm64

Example

After starting up servmon a status page will b available at http://localhost:8080 as shown below:

servmon also keeps a log of access attempts which looks like this:

Build

go build

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