screen-monitor-client is a stand-alone program that checks given url of screens whether are running or not.
- You need Golang V1.9.7.
$ git clone https://github.com/arsmine/screen-monitor-client
$ go get -u github.com/arsmine/screen-monitor-client
$ cd screen-monitor-client
$ go build
You can get binaries for Linux64 and Windows64 from releases.
./screen-monitor-client --config example_config.json
interval
: Time interval(10s, 1m etc.) that how frequently you want to check screens.urls
: Screen urls that you want to check.triger
: Name of the script that runs when a screen is down.trigerType
: Binary location that runs triger.
{
"interval": "30s",
"urls": [
"http://myendpoint.com/api/screens"
],
"triger": "sendmessage.sh",
"trigerType": "/bin/bash"
}
--config <config.json>