mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-22 02:29:57 +01:00
Add "bel" to monitoring function
This commit is contained in:
parent
6cfb2a5b9f
commit
a4448c29a3
@ -119,6 +119,7 @@ pnotify-online() {
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
if ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
||||||
|
echo -e "\07*Ding*"
|
||||||
echo "$1 is online now."
|
echo "$1 is online now."
|
||||||
pushover "$1 is online now."
|
pushover "$1 is online now."
|
||||||
break
|
break
|
||||||
@ -132,6 +133,7 @@ pnotify-offline() {
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if ! ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
if ! ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
||||||
|
echo -e "\07*Ding*"
|
||||||
echo "$1 is offline now."
|
echo "$1 is offline now."
|
||||||
pushover "$1 is offline now."
|
pushover "$1 is offline now."
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user