mirror of
https://github.com/jooray/signal-monitoring.git
synced 2026-05-20 01:44:18 +00:00
examples and documentation
This commit is contained in:
parent
a2ee342adb
commit
d10b4b23b1
@ -26,6 +26,10 @@ port, but if the authentication succeeds. It only needs to be able to run echo c
|
||||
you can configure the shell to just print "ssh_connection_ok" on stdout. It does not need
|
||||
to be able to execute any other commands.
|
||||
|
||||
**check_script** takes a check identificator as the first parameter and the rest are
|
||||
executed (warning, no sanity checking, we expect no user input coming to this). If the script
|
||||
returns an error status, it failed (exit status >0)
|
||||
|
||||
The last **signal-cli** command just downloads all messages for this instance and
|
||||
drops them. Use this if this script is the only user using this server to
|
||||
ease up storage requirements for signal servers and make sure that it does not
|
||||
|
||||
@ -125,6 +125,8 @@ check_url my-third.server.com "https://my-third.server.com/index.html" "Welcome
|
||||
|
||||
check_ssh "johnpb27" "my-ssh.server.com" 22
|
||||
|
||||
check_script "alliswell" "/usr/local/bin/is-all-well"
|
||||
|
||||
# Leave this if you don't use signal-cli outside of this script,
|
||||
# otherwise comment out, see readme
|
||||
signal-cli -u $SIGNAL_USER receive > /dev/null 2>&1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user