From: Zachary Vance Date: Thu, 21 Apr 2016 06:51:50 +0000 (-0700) Subject: Add ddns.za3k.com test X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=d87b482df909b6291cd7c3f4869bd5616fb2d848;p=za3k.git Add ddns.za3k.com test --- diff --git a/cgi-bin/service.status.d/ddns.za3k.com b/cgi-bin/service.status.d/ddns.za3k.com new file mode 100644 index 0000000..a2db139 --- /dev/null +++ b/cgi-bin/service.status.d/ddns.za3k.com @@ -0,0 +1,9 @@ +ALL=$(curl -iLs https://ddns.za3k.com) +HEADER=$(echo "$ALL" | head -1) +echo "${ALL}" | grep -q "404 Not Found" >/dev/null || exit 1 +echo "${ALL}" | grep -q "no domain" >/dev/null || exit 1 +echo "ddns.za3k.com is up" + +IP="$(curl -q icanhazip.com 2>/dev/null)" +host deadtree.moreorcs.com ns.za3k.com | grep "has" | grep "${IP}" || exit 1 +echo "deadtree.moreorcs.com == this ip"