nodechecker-go

command module
v0.0.0-...-a439243 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 10 Imported by: 0

README

nodechecker-go

A GO script for monitoring Docker swarm nodes health with Docker API and send Slack alerts if a node state is not ready.

Build

Run this command to compile for linux:

env GOOS=linux GOARCH=amd64 go build

Usage

Copy the compiled binary to a manager node (to get docker API events)!

Start it with this command after replaced the placeholders based on your needs. You can add a dollar sign at the end of the command to run it in the background, like this:

./nodechecker-go -swarmenv SWARMENV -channel SLACKCHANNEL -webhook SLACKWEBHOOK &

Run the binary with a -h flag for more info.

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