Make server status use a 20 timeout
This commit is contained in:
parent
c98e758dd9
commit
c0b10b3859
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ checkRandomSite(){
|
||||||
}
|
}
|
||||||
|
|
||||||
checkURL(){
|
checkURL(){
|
||||||
responce=$(curl -s --head -w %{http_code} $1 -L -o /dev/null --connect-timeout 10)
|
responce=$(curl -s --head -w %{http_code} $1 -L -o /dev/null --connect-timeout 20)
|
||||||
if [ "$responce" != 200 ]; then
|
if [ "$responce" != 200 ]; then
|
||||||
pgrep -x dunst && notify-send -u critical "$1 is down" "<b>Server:</b> $2\n<b>Responce:</b> $responce" & disown
|
pgrep -x dunst && notify-send -u critical "$1 is down" "<b>Server:</b> $2\n<b>Responce:</b> $responce" & disown
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue