Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
vclark
byvclark, May 9, 2012
--- scripts/nagios/check_domain (revision 109964)
+++ scripts/nagios/check_domain (working copy)
@@ -83,6 +83,10 @@
then
TYPE=dk-hostmaster
WHOIS_SERVER="whois.dk-hostmaster.dk"
+elif [ ${DLTYPE} == 'ca' ];
+then
+ TYPE=ca
+ WHOIS_SERVER="whois.cira.ca"
else
echo "We do not support this domain (not integrated). Sorry."
exit $STATE_UNKNOWN
@@ -124,6 +128,10 @@
elif [ $TYPE == 'afilias' ];
then
expiration=`cat ${FILE} | awk '/Expiration Date:/' | cut -d ':' -f2 | cut -d ' ' -f1`
+# for .ca domains
+elif [ $TYPE == 'ca' ];
+then
+expiration=`cat ${FILE} | awk '/Expiry date:/' | cut -d ':' -f2`
#for .ru domains
elif [ $TYPE == 'russia' ];
then
+++ scripts/nagios/check_domain (working copy)
@@ -83,6 +83,10 @@
then
TYPE=dk-hostmaster
WHOIS_SERVER="whois.dk-hostmaster.dk"
+elif [ ${DLTYPE} == 'ca' ];
+then
+ TYPE=ca
+ WHOIS_SERVER="whois.cira.ca"
else
echo "We do not support this domain (not integrated). Sorry."
exit $STATE_UNKNOWN
@@ -124,6 +128,10 @@
elif [ $TYPE == 'afilias' ];
then
expiration=`cat ${FILE} | awk '/Expiration Date:/' | cut -d ':' -f2 | cut -d ' ' -f1`
+# for .ca domains
+elif [ $TYPE == 'ca' ];
+then
+expiration=`cat ${FILE} | awk '/Expiry date:/' | cut -d ':' -f2`
#for .ru domains
elif [ $TYPE == 'russia' ];
then