added code to get hostid in the trigger query with ZABBIX API.