[packages/nagios-plugin-check_domain] add script to test known domains

glen glen at pld-linux.org
Fri Mar 8 10:56:19 CET 2013


commit 60dd66dac182643859a338629ebee486e5cfbbcb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Mar 8 11:55:13 2013 +0200

    add script to test known domains

 test.sh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
---
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..41f1382
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+if [ ! -e utils.sh ]; then
+	cat > utils.sh <<-EOF
+	STATE_OK=0
+	STATE_WARNING=1
+	STATE_CRITICAL=2
+	STATE_UNKNOWN=3
+	STATE_DEPENDENT=4
+	EOF
+fi
+
+
+domains="
+mail.ru
+delfi.ee
+delfi.tv
+amazon.ca
+amazon.ie
+amazon.co.uk
+"
+
+for domain in $domains; do
+	sh -$- ./check_domain -d $domain
+done
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_domain.git/commitdiff/b90816566b56dd69e128c835543567673bce3b46



More information about the pld-cvs-commit mailing list