Improve alerts, and use Spanish
This commit is contained in:
parent
4da91a76a4
commit
0f0a707200
1 changed files with 4 additions and 4 deletions
|
@ -18,14 +18,14 @@ for bts in "${BTS[@]}" ; do
|
||||||
read _c < $_f
|
read _c < $_f
|
||||||
((_c++))
|
((_c++))
|
||||||
echo $_c > $_f
|
echo $_c > $_f
|
||||||
if [ $((_c % 15)) == 0 ] ; then
|
if [ $((_c % 24)) == 0 ] ; then
|
||||||
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts still not responding to ping (x15)" > /dev/null
|
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts todavia no responde a ping (desde hace $((_c*5/60)) horas)." > /dev/null
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# And this is a new condition, so initialise counter and alert
|
# And this is a new condition, so initialise counter and alert
|
||||||
echo 1 > $_f
|
echo 1 > $_f
|
||||||
/usr/local/bin/alert.sh noenc "%F0%9F%98%BF" > /dev/null
|
/usr/local/bin/alert.sh noenc "%F0%9F%98%BF" > /dev/null
|
||||||
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts not responding to ping" > /dev/null
|
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts no responde a ping." > /dev/null
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# BTS is OK
|
# BTS is OK
|
||||||
|
@ -33,7 +33,7 @@ for bts in "${BTS[@]}" ; do
|
||||||
# This is cancelling a previous error condition, Remove counter and alert.
|
# This is cancelling a previous error condition, Remove counter and alert.
|
||||||
rm $_f
|
rm $_f
|
||||||
/usr/local/bin/alert.sh noenc "%F0%9F%98%B8" > /dev/null
|
/usr/local/bin/alert.sh noenc "%F0%9F%98%B8" > /dev/null
|
||||||
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts responding to ping (again)" > /dev/null
|
/usr/local/bin/alert.sh "$HOSTNAME: BTS $bts vuelve a responder a ping!" > /dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue