Build precise queries to find exactly what you need
Press ESC to close
@vclark
Favorites0
Views
Projects0
--- 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
Reviewed 13 years ago