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.cwscribner wrote:Charts are backThey're missing a bunch of data though. Any way to remedy that?
Manipulating trend charts
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Manipulating trend charts
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Manipulating trend charts
Wanted to revive this thread as its still on my ToDo list. Any further thoughts on making 30 minutes the default view for graphs?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Manipulating trend charts
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
to this
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) );
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) );
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Manipulating trend charts
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?
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Manipulating trend charts
You can add this as a feature request on our tracker
http://tracker.nagios.com/
http://tracker.nagios.com/
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Manipulating trend charts
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises