Ad Widget

Collapse

get several items in one script call / what's adviced ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcurty
    Junior Member
    • Jan 2019
    • 6

    #1

    get several items in one script call / what's adviced ?

    hello

    we use zabbix for quite a long time now, but maybe still in the basic way... Currently, we have about 500 hosts and about 30k items - values are fetched via several proxies. We find it , now, quite resource consuming to get all values because, we nearly have a script to call by value we get, and most of them are from python script that need several heavy python libraries.

    Most of the time, we make an API call to get several values, for one item, and filter the resultset to get just one of them to feed the item... and for the same resultset, the other fields will be requested one by one by zabbix orchestrator.
    It would be less resource consuming, for the result set we get from the external api call (let's say, .. aws api e.g.), to feed several zabix items at the same time..
    Is it possible to do it ? What would be the best design to do so.. ?

    thank you for your help
    best regards
    Mickael
  • adrian_c
    Junior Member
    • Nov 2018
    • 12

    #2
    Hi

    I would have the script return multiple items as JSON, and then all the other items would be "dependent items" using the JSON item as the master and use preprocessing to extract the relevant value.

    Adrian

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Originally posted by mcurty
      It would be less resource consuming, for the result set we get from the external api call (let's say, .. aws api e.g.), to feed several zabix items at the same time..
      Adrian covered it, but here's the link to the documentation:

      Comment

      Working...