mirror of
https://github.com/jooray/signal-monitoring.git
synced 2026-05-02 16:31:08 +00:00
Merge pull request #1 from adrianbiro/patch-1
Update signal-monitoring.sh
This commit is contained in:
commit
8e167608c7
@ -56,7 +56,7 @@ function check_failed {
|
||||
|
||||
log "check_failed ${check_name} ${description}"
|
||||
|
||||
FOUND=`find ~/.signal-monitoring -mmin -60 -name "${check_filename}" -not -empty -print`
|
||||
FOUND=$(find ~/.signal-monitoring -mmin -60 -name "${check_filename}" -not -empty -print)
|
||||
if [ -z "$FOUND" ]
|
||||
then # we don't have recent notification (60 minutes)
|
||||
if [ $notify_on_failures == 1 ]
|
||||
@ -79,7 +79,7 @@ function attempts {
|
||||
check_script_to_call="$3"
|
||||
# check_arguments are $4 and on
|
||||
|
||||
for attempt in `seq 1 ${number_of_attempts}`
|
||||
for attempt in $(seq 1 ${number_of_attempts})
|
||||
do
|
||||
if [ "${attempt}" == "${number_of_attempts}" ]
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user