Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
DarknessBBB
Please let me know it this code to add is ok:
elif [ ${DLTYPE} == 'it' ];
then
TYPE=italy
WHOIS_SERVER="whois.nic.it"
.
.
.
.
elif [ $TYPE == 'italy' ];
then
day=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f3`
month=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f2`
year=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f1`
expiration=$day-$month-$year
sometimes the server responds only with te status (without expire date), but I think it depends on how many queries per hour it receives from the same source IP.
Thank you
elif [ ${DLTYPE} == 'it' ];
then
TYPE=italy
WHOIS_SERVER="whois.nic.it"
.
.
.
.
elif [ $TYPE == 'italy' ];
then
day=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f3`
month=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f2`
year=`cat ${FILE} | awk '/Expire Date:/' | cut -d ':' -f2 | cut -d ' ' -f9 | cut -d '-' -f1`
expiration=$day-$month-$year
sometimes the server responds only with te status (without expire date), but I think it depends on how many queries per hour it receives from the same source IP.
Thank you