monitor by telnet
# install deps
$ make install
# build server
$ make build
# start server
$ DING_URL={your_url} ./bin/telnetor-server
# load config, will load '{cwd}/telnetor.toml'
$ DING_URL={your_url} LOAD_CONFIG=true ./bin/telnetor-server
# build image
$ docker build -t telnetor .
# start
$ docker run --name telnetor -d -e DING_URL={your_url} -p 10101:10101 telnetor
# load config
$ docker run --name telnetor -d -e DING_URL={your_url} -e LOAD_CONFIG=true -v `cwd`/telnetor.toml:/opt/telnetor/telnetor.toml -p 10101:10101 telnetor
# install deps
$ make install
# build client
$ make build.cli
# add a watcher for 'google.com:80' interval is 2s
$ ./bin/telnet-client add "google.com:80" -i 2
# del a watcher
$ ./bin/telnet-client del "google.com:80"
# show watcher list now
$ ./bin/telnet-client list
MIT © zcong1993
Content type
Image
Digest
Size
5.4 MB
Last updated
over 8 years ago
docker pull zcong/telnetor