Hello,
Is there a method to get graphs/rrd from an external site ?
For my customer’s extranet i want to display some graphs about equipement.
I’m using APIv2 REST.
But nothing about RRD/Graphs in official documentation…
Regards,
Hello,
Is there a method to get graphs/rrd from an external site ?
For my customer’s extranet i want to display some graphs about equipement.
I’m using APIv2 REST.
But nothing about RRD/Graphs in official documentation…
Regards,
Best answer by sims24
Hi,
Note that if you would like to directly get the RRD png file instead of raw datapoints, you can also use this endpoint:
https://$CENTREON-IP-OR-DNS$//include/views/graphs/generateGraphs/generateImage.php?akey=$AUTH_KEY$&username=$USER$&hostname=$HOSTNAME$&service=$SERVICENAME$&start=$TIMESTAMPSTART$&end=$TIMESTAMPEND$Replace $VALUES$ by yours. It requires that your user has an autologin key and config API access:

curl "https://X.X.X.X/centreon/include/views/graphs/generateGraphs/generateImage.php?akey=jaUv8KJacW&username=api_graph&hostname=EC2&service=Diskio&start=1640852228&end=1641457028" --output 'rrd_graph.png'
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.