Hi Folks,
how do I fetch a PRTG chart as .png using the HTTP REST API using curl
on Linux?
According to the API documentation, the command line schould look like this:
curl -O -k --location -H "Accept: image/png" -X GET https://prtg/chart.png?type=graph&width=600&height=300&graphid=0&id=54807&username=myUSer&passhash=1234567
Authentication and stuff works fine. MY chrome browser (and even the postman-plugin) show the wanted result. However, the curl
-call basically returns an HTML page stating that
JavaScript is not available
Which is correct, as curl
obviously does not handle this. Is there a way to pick up just the image/byte stream?
Best Regards HH
Add comment