From d87b482df909b6291cd7c3f4869bd5616fb2d848 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Wed, 20 Apr 2016 23:51:50 -0700 Subject: [PATCH] Add ddns.za3k.com test --- cgi-bin/service.status.d/ddns.za3k.com | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cgi-bin/service.status.d/ddns.za3k.com 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" -- 2.47.3