Ad Widget

Collapse

Zabbix API help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmika_ko
    Junior Member
    • Aug 2013
    • 1

    #1

    Zabbix API help

    Hi. I'm trying to assign additional templates to a host using an api.
    As I understand, when calling method host.update, I need to provide list of templates to replace currently assigned templates, therefore I need to get list of currently assigned templates, and append new template to it.
    There's the problem - when I call host.get method with templated_hosts set to either 1 or True, to get a list of current templates, I get exactly same output as I'd get without setting that option - no information about templates.
    Is there a way to know ids of templates assigned to a host, or to append a template id to an existing host?
Working...