Page 1 of 1

Linking directly to performance graphs

Posted: Wed Feb 28, 2018 10:31 am
by quentinw
Hi all,

I found this article and wanted to confirm if this is the recommended way to access host/service graphs directly for embedding in Word documents. The backend API is depreciated.

https://support.nagios.com/kb/article/n ... hs-91.html

We write monthly reports for our customers and in Nagios Core used to embed links to the graphs but we haven't found how to do so easily in XI. We have XI 5.4.0

The old way in Core was as follows:

https://nagioscore_host/pnp4nagios/image?host=hostname&srv=CPU__CPU_Usage&view=1&source=0&start=1519741741&end=1519831741

Many thanks,

Quentin

Re: Linking directly to performance graphs

Posted: Wed Feb 28, 2018 11:48 am
by scottwilkerson
Yes, XI uses different graphs than pnp4nagios.

I need to point out, it's not an image file that you are getting, you would be getting the full HTML for the graphs in XI which are much more robust

Re: Linking directly to performance graphs

Posted: Wed Feb 28, 2018 10:35 pm
by quentinw
Thanks for the reply.

Can you confirm that graphexplorer is the correct way to directly access the graphs? Does the graphexplorer method support api keys instead of the backend tickets?

Re: Linking directly to performance graphs

Posted: Thu Mar 01, 2018 7:43 am
by scottwilkerson
quentinw wrote:Can you confirm that graphexplorer is the correct way to directly access the graphs?
Yes it would be.
quentinw wrote:Does the graphexplorer method support api keys instead of the backend tickets?
Not at this time, but coming in a future release.