Trigger function nodata() is extremely useful for monitoring of hearbeats. You make create a script which would periodically send a value to ZABBIX server (crontab + zabbix_sender), and the nodata() trigger would detect if there is no data coming from the script within a period of time.