Git Product home page Git Product logo

servmon's Introduction

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

Install

Homebrew

brew install Jmainguy/tap/servmon

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 \
  hub.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

export GO111MODULE=on
go build

servmon's People

Contributors

renovate[bot] avatar jmainguy avatar slmingol avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

slmingol

servmon's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/push.yml
  • actions/checkout v4
  • golangci/golangci-lint-action v6
  • actions/setup-go v5
  • actions/checkout v4
  • shogo82148/actions-goveralls v1
  • actions/setup-go v5
  • actions/checkout v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-go v5
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • goreleaser/goreleaser-action v6
gomod
go.mod
  • go 1.17
  • github.com/gin-gonic/gin v1.10.0
  • github.com/slack-go/slack v0.13.0
  • gopkg.in/yaml.v3 v3.0.1

  • Check this box to trigger a request for Renovate to run again on this repository

Starting servmon complains about absence of template.html file

$ servmon
2022/02/09 09:53:13 open /Users/slm/bb/template.html: no such file or directory
2022/02/09 09:53:14 open /Users/slm/bb/template.html: no such file or directory
2022/02/09 09:53:14 open /Users/slm/bb/template.html: no such file or directory
2022/02/09 09:53:14 open /Users/slm/bb/template.html: no such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.