how to use

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

how to use

Post 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?
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: how to use

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: how to use

Post 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?
Nagios XI 5.8.1
https://outsideit.net
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: how to use

Post by ssax »

It doesn't currently work for multistacked graphs.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: how to use

Post 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?
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how to use

Post 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

Code: Select all

&start=1446902866
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: how to use

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked