-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a small improvement #21
Comments
Hi. I am looking at the same issue where I have a number of subdomains of .ac.nz to monitor but both your script above and the original are truncating all FQDNs to ac.nz and therefore failing to get expiry dates. It looks like the subdomain is being stripped in the if statement that looks at the CCTLD/TLD . I'm trying to figure out why that if statement is there as running echo $_domain after the if statement shows the subdomain has been stripped. I've tried hashing out the entire if statement and the subdomain is retained when running the script from CLI against an FQDN but for some reason it still does not seem to be showing up in Zabbix. |
|
a small improvement
Your ./whois_expire.sh script could be improved to serve full URLs instead of just domain.
For example:
./whois_expire.sh https://one.two.three.quatro.wiki.tiozaodolinux.com
318
./whois_expire.sh http://one.two.three.translate.google.com
1937
will result in a query to the domains tiozaodolinux.com and google.com
Take a look at the code and feel free to use it (if you find it useful).
whois_expire.sh.txt
The text was updated successfully, but these errors were encountered: