Page 1 of 1
how to use
Posted: Wed Nov 18, 2015 3:25 am
by WillemDH
Added embeddable highcharts performance graphs that can be placed in an iframe passing host/service/width/height/username/token
How can I use the above feature of XI 5 exactly?
Re: how to use
Posted: Wed Nov 18, 2015 3:56 pm
by lmiltchev
The graphvis API will be used. We don't have any documentation yet, but we will be adding this functionality to the new REST API soon.
An example URL would look something like this:
Code: Select all
http://x.x.x.x/nagiosxi/includes/components/graphexplorer/graph.php?host=<myhost>&service=<myservice>&width=<some width>&height=<some height>&username=<username>&ticket=<token>
In my case:
Code: Select all
http://x.x.x.x/nagiosxi/includes/components/graphexplorer/graph.php?host=CentOS6-NRPE&service=Load&width=1200&height=520&username=nagiosadmin&ticket=<mytoken>
example01.PNG
Re: how to use
Posted: Wed Nov 18, 2015 5:54 pm
by WillemDH
Ah ok I was looking around for documentation but couldn't find it. I'll test this asap and will let you know what I find. Could take some time, as I first still need to test and implement SSL and next week I have a full week of VMware courses...
Please leave the thread open for some time.
EDIT: Will this work for multistacked graphs? If so, could you give an example?
Re: how to use
Posted: Thu Nov 19, 2015 11:44 am
by ssax
It doesn't currently work for multistacked graphs.
Re: how to use
Posted: Mon Nov 30, 2015 8:58 am
by WillemDH
I have been testing this and it works. Is it possible to add the timeperiod to the url, as I can only produce 24 hours timeperiods? If so, could I please get the syntax how to do this?
Re: how to use
Posted: Mon Nov 30, 2015 3:05 pm
by scottwilkerson
I have added this for 5.2.3
Also including the changes in the attachment below.
After placing the attachment in
/usr/local/nagiosxi/html/includes/components/graphexplorer/
You can use the following URL arguments
Code: Select all
&view=0 - 4 Hour
&view=1 - 24 Hour
&view=2 - 7 days
&view=3 - 1 month
&view=4 - 1 year
OR
you can specify a specific timestamp to start from
Re: how to use
Posted: Mon Nov 30, 2015 3:14 pm
by lmiltchev
Thanks, Scott! I tested changing the timeperiod by adding "&view=...", which seemed to be working well. Here's my "7 days" graph:
example01.PNG
Willem, let us know if this is working for you as well.