Ad Widget

Collapse

Different values for history item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mihaidim
    Junior Member
    • Jul 2024
    • 1

    #1

    Different values for history item

    Hello!
    Is there any way to the history for an item, but only the different values for a period of time?

    For example I'd like to retrieve the last N different values of an item in the last 6 months, without getting all the history for that particular item and then do the post-processing. Can zabbix do this via API?

    Right now what I'm doing is to retrieve the host id (filter using host), then the item id (filter using hostid and key_) and then do history.get on that itemid that i just got. This method is very heavy computing expensive.

    What method do you suggest me to implement to be optimized and without fetching all the history in 6 months. Is there any smarter way?

    Thanks!
    Mihai
Working...