Based on script http://www.cyberciti.biz/tips/domain-check-script.html.
Check domain via "whois" and parse answers.
perl, zabbix-agent, zabbix-sender
- copy domaindiscover.pl to /etc/zabbix/
- create /etc/zabbix/domain.list with domains list, one per line.
- copy zabbix_agentd.d/domain_check.conf to /etc/zabbix/zabbix_agentd.d/
- copy domain-check.sh to zabbix externalscripts (/usr/lib/zabbix/externalscripts)
- create directory /var/cache/zabbix/domain.db on zabbix server.
- edit the necessary parameters in domain-check.sh script.
- import "zbx_templates/Template Domain check.xml" into your templates.
- create host "Domains" (ip 127.0.0.1) and applay "template Domain check" on it.
- create crontab rule, like: 1 3 * * * zabbix /usr/lib/zabbix/externalscripts/domain-check.sh -z 2>&1 > /dev/null
Since each registrar provides expiration data in a unique format (if they provide it at all), domain-check is currently only able to processess expiration information for a subset of the available registrars.