segfault/admin/monitor_ssh/readme.md
aog 2225a0db0c mfs: add monitor functional ssh tool
Signed-off-by: aog <theaog@users.noreply.github.com>
2022-11-07 20:26:39 +02:00

581 B

Monitor Functional SSH (mfs)

Attempts to start a SSH session (concurrently) to each of our segfault.net instances and reports on telegram any failures to connect or login.

Admins must provide TG_KEY and TG_CHATID env variables to start the tool.

$ export TG_KEY="key"
$ export TG_CHATID="12345678"

The servers list must be supplied via CLI flags, e.g.:

$ ./mfs \
    -s de.segfault.net:secret \
    -s us.segfault.net:secret \
    -s it.segfault.net:secret

By default it checks all servers every 1 minute, you can tweak the timer e.g. -timer 5m