Ad Widget

Collapse

Zabbix API, Templates and Hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artrune
    Junior Member
    • Aug 2020
    • 16

    #1

    Zabbix API, Templates and Hosts

    How come we can treat templates as hosts?

    For example, running the itemprototype.get method in the api, I'm able to specify in the hostids parameter filter a templateid and get the related information.

    Do templates and hosts share the same "id" namespace? Is it safe to do this? Are there any other ways to retrieve item prototypes from a template?

    Thanks!
  • isaqueprofeta
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2020
    • 154

    #2
    Yes, at the database level the Templates are in the Hosts table where they're differentiated by status column being equal 3.
    Last edited by isaqueprofeta; 29-08-2020, 00:02.

    Comment


    • artrune
      artrune commented
      Editing a comment
      Thanks alot!
Working...