Highcharts custom axis and time period for Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dgatlas
Posts: 16
Joined: Thu Dec 11, 2014 1:42 pm

Highcharts custom axis and time period for Nagios XI

Post by dgatlas »

Under Servicegroup Summary > Service column > graph icon, I need to change the graph to show a custom x axis (monday to sunday).

I've made a custom check script that adds perfdata in the form of hours so I want to show the hours usage of something for each day of the week.

How do I customize this graph?

Code: Select all

$ uname -r
2.6.32-431.29.2.el6.x86_64
Manual install
No Gnome
No proxy
No SSL


Note: Our CFO is in the process of purchasing a license so I do not have access to the Nagios XI Customer Support forum and I need to get this solved asap.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by sreinhardt »

We are definitely going to have to test this one out. More than likely we will need to setup a pnp template so that your rrds will accept less than 5 minute intervals without pushing in false nans. Then its up to highcharts to see if it will respect the timings we put in to the pnp configs or not. I'll have a chat with a developer and see.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dgatlas
Posts: 16
Joined: Thu Dec 11, 2014 1:42 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by dgatlas »

Any response from a developer?

Also, can you move this post to the Customer forum please.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by sreinhardt »

Yes, according to our developers there are some options on the highcharts side that can be used to change labels. Additionally, highcharts should auto set x intervals to timeframes defined in your rrds. So if you have setup the nagios check for once an hour, and the pnp templates for once an hour, highcharts should respect that. At this point, would I be correct in guessing that the pnp and rrd changes have not been made? If not, we can find some instructions to send you and begin working through this.

Also note, this has been moved to the customer forum.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dgatlas
Posts: 16
Joined: Thu Dec 11, 2014 1:42 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by dgatlas »

Great. Yes, the pnp and rrd changes have not been made, please send me some instructions. Especially locations of there these pnp and rrd files are stored.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Highcharts custom axis and time period for Nagios XI

Post by tmcdonald »

We would need to have a developer weigh in on this. We don't really have instructions currently existing to do this specifically since it's somewhat specific to your environment. What I can say is that the RRDs are under /usr/local/nagios/share/perfdata and the pnp stuff is a component I believe at /usr/local/nagiosxi/html/includes/components/pnp/, but again I will need to defer to a developer for specifics.
Former Nagios employee
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by lgroschen »

http://api.highcharts.com/highcharts#xAxis.startOfWeek

I think you will need to make this change before the highcharts graph is drawn where it is being sent the parameters in an array. Therefore, I would read through the above documentation since the xAxis section has all kinds of goodies to be able to customize it. I'm not sure how you feel about changing php files, but I'm sure we can come up with a solution if you figure out which area you want to manipulate.
/Luke
dgatlas
Posts: 16
Joined: Thu Dec 11, 2014 1:42 pm

Re: Highcharts custom axis and time period for Nagios XI

Post by dgatlas »

I'm fine with changing PHP files. Can you tell me the files I'd need to edit?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Highcharts custom axis and time period for Nagios XI

Post by tmcdonald »

Highcharts is a pretty complicated beast, but I know when you click that graph icon it calls the function graphexplorer_display_graph() which is located in /usr/local/nagiosxi/html/includes/components/graphexplorer/includes/graphexplorerinclude.js

Anything in the /usr/local/nagiosxi/html/includes/components/graphexplorer folder should be worth looking at for these changes. Until a developer can give a more specific location, that is where I would start.

Just keep in mind that any changes made there will likely be wiped by a future upgrade, and custom modifications fall outside of our support contract.
Former Nagios employee
Locked