Ad Widget

Collapse

API, PHP, get macros filter problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxlock
    Member
    • Mar 2005
    • 32

    #1

    API, PHP, get macros filter problem.

    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?

    PHP Code:
    $macro_detail ZabbixAPI::fetch_array('usermacro','get',array('filter'=>array('value'=>$my_value),'hostids'=>array($my_templateid),'extendoutput'=>1)); 
    Zabbix is 1.8.2.

    -Cheers Max
    Last edited by maxlock; 11-05-2011, 12:55. Reason: rendering error
Working...