Hi All,
I'm trying to search the macros defined in a template for one with a matching value, I'm getting all the macros for the host returned instead of just one. Where am I going wrong? all the macros have unique values, is as though the filtering is broken?
Zabbix is 1.8.2.
-Cheers Max
I'm trying to search the macros defined in a template for one with a matching value, I'm getting all the macros for the host returned instead of just one. Where am I going wrong? all the macros have unique values, is as though the filtering is broken?
PHP Code:
$macro_detail = ZabbixAPI::fetch_array('usermacro','get',array('filter'=>array('value'=>$my_value),'hostids'=>array($my_templateid),'extendoutput'=>1));
-Cheers Max