Manipulating trend charts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Manipulating trend charts

Post by scottwilkerson »

cwscribner wrote:Charts are back :D They're missing a bunch of data though. Any way to remedy that?
Time might remedy it if the npcd daemon was erroring while rrdtool was missing, but I'm not totally sure about this... I haven't seen a case where rrdtool has gone missing before.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Manipulating trend charts

Post by cwscribner »

Wanted to revive this thread as its still on my ToDo list. Any further thoughts on making 30 minutes the default view for graphs?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Manipulating trend charts

Post by scottwilkerson »

I'm gonna make a second attempt at this, but this really isn't ideal because the component can and will get overwritten in future releases as well as I'm not going to go into changing all of the other hard coded timeframes that this will put off a bit.....

That being said, here we go.

make a backup of graphApi.php just in case, and then try the following:

on about line 169, change

Code: Select all

$pnpviews = array('-4h', '-24h', '-7d', '-30d','-365d'); 
//timestamp conversions for PNP views 
$pnpstamps = array((60*60*4), (60*60*24), (60*60*24*7), (60*60*24*30), (60*60*24*365) ); 
to this

Code: Select all

$pnpviews = array('-4h', '-30m', '-7d', '-30d','-365d', '-24h');
	//timestamp conversions for PNP views
	$pnpstamps = array((60*60*4), (60*30), (60*60*24*7), (60*60*24*30), (60*60*24*365), (60*60*24) );  
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Manipulating trend charts

Post by cwscribner »

Well, I think I'll have to sweet talk the client out of this one until there's something more permanent.

The change did make the graphs show a 30m window, but when selecting another time period you lose the ability to change it back. Even after clearing the cache and refreshing the page, you still can't get the 30m window back. Could I make a formal request to have 30m be a standard time period?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Manipulating trend charts

Post by scottwilkerson »

You can add this as a feature request on our tracker
http://tracker.nagios.com/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Manipulating trend charts

Post by cwscribner »

I'll have to leave that up to you to add. I've tried several times in the past to register and post feature requests but the registration has yet to work.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Manipulating trend charts

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart