Ad Widget

Collapse

Getting graph data or image via API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Junior Member
    • Dec 2009
    • 15

    #1

    Getting graph data or image via API

    Is it possible to get graph data as an array via the API?

    If that isn't possible, is it possible to get the graph image via the API?

    We'd like to display graphs from Zabbix on our support site, but I can't find a way to get the data from the API.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    If you just want to display graphs in your own Web site, I think that the easiest way is to insert a call to Zabbix Web interface to generate it.

    For instance:
    Code:
    <img src="http://zabbix/zabbix/chart2.php?graphid=247&width=640&period=86400">
    generates a graph whose id is 247, 640 pixels wide for last 24h (86400s).

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • Russ
      Junior Member
      • Dec 2009
      • 15

      #3
      Originally posted by alixen
      Hi,

      If you just want to display graphs in your own Web site, I think that the easiest way is to insert a call to Zabbix Web interface to generate it.
      I'd thought about that, but assumed I'd need to authenticate against Zabbix and didn't really look into it properly. If that will work, then I think we might go with that solution.

      Thanks.

      Comment

      • alixen
        Senior Member
        • Apr 2006
        • 474

        #4
        Hi,

        Originally posted by Russ
        I'd thought about that, but assumed I'd need to authenticate against Zabbix and didn't really look into it properly. If that will work, then I think we might go with that solution.
        It will work as long as you allow guest user to have at least read only access on hosts you want display on your website.

        Regards,
        Alixen
        http://www.alixen.fr/zabbix.html

        Comment

        • Russ
          Junior Member
          • Dec 2009
          • 15

          #5
          Thanks, Alixen.

          Comment

          Working...