Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8923783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:13:37+00:00 2026-06-15T07:13:37+00:00

My Goal: I would like to extract graphs associated with hosts in .png format.

  • 0

My Goal:

I would like to extract graphs associated with hosts in .png format. My GOOGLE research say’s we don’t have Zabbix API designed to do this task. So few blogs advised to user Chart2.php & CURL. Can someone explain me how to go about it ( detailed steps )?

Note: Sorry never worked on php nor on curl

When i tried

curl https://example.com/zabbix/chart2.php?graphid=1552&width=300&height=300

Got this, but link doesn’t work

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="/zabbix/openid?graphid=1552&amp;modauthopenid.referrer=https%3A%2F%2Fexample.com%2Fzabbix%2Fchart2.php%3Fgraphid%3D1552">here</a>.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at example.com Port 80</address>
</body></html>

Also how can i incorporate this with my zabbix api (JAVA ) call ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:13:38+00:00Added an answer on June 15, 2026 at 7:13 am

    This works with the normal password authentication, you need to adapt it to openid which I don’t use and most certainly you will have to change options for this to work with curl.

    1. wget --save-cookies=z.coo -4 --keep-session-cookies -O - -S --post-data='name=(a zabbix username)&password=(password)&enter=Enter' 'http://example.com/zabbix/index.php?login=1'

    2. wget -4 --load-cookies=z.coo -O result.png 'http://example.com/zabbix/chart2.php?graphid=410&width=1778&period=102105&stime=20121129005934'

    the first one posts authentication and saves the cookie. the second loads the same cookie file and retrieves the png.

    You must certainly want to implement it without using shell but in a language of your preference and zabbix’s JSON-RPC API of which there are plenty of client libraries already.

    Though AFAIK you still will have to login like this to get the graph’s image. At least for the time being.

    EDIT: https://support.zabbix.com/browse/ZBXNEXT-562 is the one to vote (or start working on it)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a Maven goal trigger the execution of a java
I have three mysql tables that I would like to extract some information from,
I would like to rewrite the collection that is returned by Mage::getResourceModel('sales/order_collection'); My goal
Goal I am building an Eclipse plugin targeting the 3.7 environment and would like
My Goal: I would like to search for elements in large XML Schema spec.
I have a random 2D image. I would like to be able to present
I would like to customize my EditTextPreference . My goal is formatting the title
I have one need: In an Asp.Net 4.0 application I would like to deny
My goal I would like to let browsers cache my whole website, but only
Goal: I would like the menu items to take up the same amount of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.