Reimplement zabbix.discovery() using query framework.