Ad Widget

Collapse

External URL to graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcmyst
    Member
    • Feb 2012
    • 72

    #1

    External URL to graphs

    Hi,

    I would like to integrate URLs to zabbix graph page from an external website.

    I have created a user with the auto-login function, and I can login with this url:
    http://zabbix_url/chart.php?name=use...pwd&enter=Sign in

    Now I would like to be able to send the user directly to a graph, or at least to the graph page, with the Host drop down select already set to the desired Host.

    I tried this:
    http://zabbix_url/chart.php?name=use...pwd&enter=Sign in&form_refresh=1&fullscreen=0&groupid=0&hostid=10 056&graphid=0

    But I get an error image saying:
    Critical error. Fiel "itemid" is mandatory.

    Thank you
  • dbarton
    Junior Member
    • Aug 2012
    • 15

    #2
    Hi

    Try it via
    Code:
    http://zabbix_url/chart2.php?name=user_name&password=user_pwd&enter=Sign&graphid=1234
    Use additional GET parameters:
    • width=[width in px]
    • height=[height in px]
    • period=[period in seconds]
    • stime=[start timestamp]


    Btw: You shouldn't use user and passwords in GET requests, if the page is public. If everyone is allowed to view this graphs, just use the guest login:

    Code:
    http://zabbix_url/chart2.php?graphid=1234
    Cheers
    Domi

    Comment

    • mcmyst
      Member
      • Feb 2012
      • 72

      #3
      Thank you for the answer, it is working perfectly !!!!

      The more I work on zabbix, the more I love it !

      Comment

      Working...