downdetector/scripts/uptime.sh

4 lines
89 B
Bash
Raw Permalink Normal View History

2022-07-26 22:16:09 -04:00
#! /bin/bash
ping $1 -c 1 > /dev/null || echo "$(date +"%D - %H:%M:%S"): $2 down" >> $2