Ad Widget

Collapse

Create graphs via api, using item key instead of the item id

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amindri
    Junior Member
    • May 2011
    • 5

    #1

    Create graphs via api, using item key instead of the item id

    Hi,

    I'm trying to write a Java program to generate Items, triggers, and graphs. The program reads pre stored templates, which includes the Json message.

    So far I had no problem in creating triggers, as its 'expression' is based on the relevant item's 'key'.

    The problem begins when it comes to graph creation, as it is based on the item id, but not on item key. My program is written in a very flexible way that users can extend its functionality.

    Having graphs to be created with item id, disturbs its flexibility. Instead is there any way of creating graphs using the item key?

    Does Zabbix 1.8.4 support this?
    Any suggestions are welcome....
    thanx in advance
  • alisson
    Member
    Zabbix Certified Specialist
    • Nov 2009
    • 70

    #2
    No.

    To do this you have to use item.get and get the id and do graph.create based on that.
    __________________
    --
    Alisson Oliveira
    [url]www.zabbix.com.br[/url]
    [url]www.unirede.net[/url]
    Porto Alegre - RS - Brasil

    Comment

    • amindri
      Junior Member
      • May 2011
      • 5

      #3
      thank u for the idea.....
      But it would have been easier if Zabbix provided that option. Hope this will be added in a coming releases

      Comment

      Working...