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.