Ad Widget

Collapse

Zabbix API and Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcsx123
    Junior Member
    • Sep 2014
    • 14

    #1

    Zabbix API and Graphs

    Hi.

    Is it possible using API to get a graph with a specific id, pass to the request a time interval and print the graph in my page, for example as an image?

    I have read the documentation and I am not sure if this can be done using API.

    Thank you.
  • authex
    Member
    • Jan 2014
    • 32

    #2
    Hi there bcsx123,
    I currently use StatusBoard (iPad connected to Television) and I am able to display graphs in real time. I'm not sure if this is something you would consider, but this leads me to believe that API's are meant to work like you want them to.

    Hope this helps

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Check https://www.zabbix.com/forum/showthread.php?t=30267
      May be you can use for your page the graph, created by zabbix server?
      Code:
      http://zabbix_url/chart2.php?graphid=1234
      Sincerely yours,
      Aleksey

      Comment

      • bcsx123
        Junior Member
        • Sep 2014
        • 14

        #4
        Originally posted by aib
        Check https://www.zabbix.com/forum/showthread.php?t=30267
        May be you can use for your page the graph, created by zabbix server?
        Code:
        http://zabbix_url/chart2.php?graphid=1234
        Hi.

        I have already seen this thread. I like the idea but the problem is that I need to change the time interval for the graph. Do you know if is possible to pass a time inteval through the URL?

        Thanks.

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Yes, you can.
          As it described in that thread
          Code:
          Use additional GET parameters:
          
              width=[width in px]
              height=[height in px]
              period=[period in seconds]
              stime=[start timestamp]
          Sincerely yours,
          Aleksey

          Comment

          • bcsx123
            Junior Member
            • Sep 2014
            • 14

            #6
            Originally posted by aib
            Yes, you can.
            As it described in that thread
            Code:
            Use additional GET parameters:
            
                width=[width in px]
                height=[height in px]
                period=[period in seconds]
                stime=[start timestamp]
            How could I have missed these parameters? Thank you very much!

            Comment

            • Sevier
              Junior Member
              • Oct 2017
              • 1

              #7
              Originally posted by bcsx123
              How could I have missed these amazing Phallosan Forte results and parameters? Thank you very much!
              The paramaters don't do anything for me.
              Last edited by Sevier; 01-10-2021, 16:03.

              Comment

              Working...