Ad Widget

Collapse

API returns incomplete list of Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • notsam
    Junior Member
    • Oct 2024
    • 3

    #1

    API returns incomplete list of Graphs


    Good evening,

    I work for a company that asked me to build and maintain a NextJS webapp that acts as a panel for their customers, this webapp shows data from different sources, including Zabbix.
    The integration i created simply displays the History/Trend of the different Graphs of the HostId provided, fetching this data from Zabbix's API.

    This works flawlessy for almost every host, except for a few of them.
    When using the "graph.get" method some Hosts return a partial result, while on the GUI i can see all of the existing graphs for that Host, the API only returns the first group of graphs.

    We're not sure on what might be causing this, but we came to the conclusion that it's a problem with Zabbix, since the problem presents itself both when using the Webapp and when asking the API from a client like Insomnia/Postman.

    Zabbix is on version 7.0.2, an update is scheduled for the next few days, but we're not sure it's going to solve our issue.

    Did someone else run into this problem or has an idea on what might be causing it?

    I'll attach an image to make the issue more clear.



    Click image for larger version

Name:	zabbix.png
Views:	129
Size:	267.8 KB
ID:	492865
  • notsam
    Junior Member
    • Oct 2024
    • 3

    #2
    Updating Zabbix to the latest version didn't fix the issue.

    Comment

    • ISiroshtan
      Senior Member
      • Nov 2019
      • 324

      #3
      What you showing on screenshot are not "graphs", it's item history drafted on temporary graph. It's not saved as a dedicated object and as such can not be selected by graph.get.
      What graph.get selects are actually created and saved graphs under Monitoring -> Hosts -> Graph or Data collection -> Hosts -> Graphs

      Comment

      Working...