Zabbix template to monitor the expiry dates of domain names. This solution downloads whois data then checks expiry date from the whois data. This is a workaround from the solutions currently available which utilize whois utility on linux.
Setup:
-
Copy shell script check_domain.sh to your Zabbix server external scripts dir (default: /usr/lib/zabbix/externalscripts/)
-
Make it executable (e.g. chmod +x /usr/lib/zabbix/externalscripts/check_domain.sh)
-
Import yaml template to your zabbix server
-
Create a host and attach the template to the host. Make sure to add macro {$DOMAINNAME} with domain name as the value.
-
Add this line on zabbix_agentd.conf: UserParameter=check_domain[*],/usr/lib/zabbix/externalscripts/check_domain.sh $1
-
restart zabbix-agent