servmon

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