Previously in 1.8.0 and 1.8.1 using the php functions from http://andrewfarley.com/php/zabbix-1...php-class-v1-0 I managed to :
use Template GetObjects to get a templateid ($tempid) for a named template
use the templateid on host get to get a list of all hosts with that template specifying 'select_items' =>1, 'sortfield' ='host','templateids' =>$tempid
However, when I try doing the same thing on 1.8.2 I can get the templateID correctly, but when I try a host get to get a list of hosts all I get returned is the zabbix server itself. Has anything changed that would explain this?
the api_user in zabbix is a superadmin so should have all the access needed.
use Template GetObjects to get a templateid ($tempid) for a named template
use the templateid on host get to get a list of all hosts with that template specifying 'select_items' =>1, 'sortfield' ='host','templateids' =>$tempid
However, when I try doing the same thing on 1.8.2 I can get the templateID correctly, but when I try a host get to get a list of hosts all I get returned is the zabbix server itself. Has anything changed that would explain this?
the api_user in zabbix is a superadmin so should have all the access needed.
Comment