Add "bel" to monitoring function

This commit is contained in:
Jan Jastrow 2024-04-29 23:16:22 +02:00
parent 6cfb2a5b9f
commit a4448c29a3
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@ pnotify-online() {
while true; do
if ping -c 1 -W 1 "$ip_address" >/dev/null; then
echo -e "\07*Ding*"
echo "$1 is online now."
pushover "$1 is online now."
break
@ -132,6 +133,7 @@ pnotify-offline() {
while true; do
if ! ping -c 1 -W 1 "$ip_address" >/dev/null; then
echo -e "\07*Ding*"
echo "$1 is offline now."
pushover "$1 is offline now."
break