[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Cur In/Out and Last always 0.0

Cheshire Cat Computing

Software support and information
It is currently Tue Nov 11, 2025 9:38 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu May 17, 2007 7:29 am 
Offline
User

Joined: Thu Nov 16, 2006 8:31 am
Posts: 8
Hello!

I just had a quick question. Whenever I look at all my graphs they all show Cur In and Out or Last as 0.0. I just went from 2.17 beta 8 to v2.18beta2 and it is still doing it.

I've got two sets of configs. One in a common directory and a second set that I've got in a folder I call "Locations" for grouping.

My RRD log files are broken up into folders for each type of device. Routers, Switches, Wireless, Other.

I'm not sure if I have something configured wrong or just setup wrong.

Any ideas?

Thanks!
-E


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu May 17, 2007 11:09 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This is due to a race condition with MRTG/RRD.

Data is collected by MRTG and logged by RRDTool against the 5-min window in which it appears. However, if you subsequently generate a graph while in the next window, you can get this.

EG, collect data at 12:04 and log it. It goes against the 12:00-12:05 window.
Then, generate a graph at 12:06. This is in the next window, so the last same is displayed as 0 (unknown).

routers2 does some tricks to try and get around this, but it is harder to avoid on userdefined graphs.

What you can do to avoid it is one of these.
1. Make sure you data collection runs at the beginning of the 5-min window (hard)
2. Set the uselastupdate=yes option in the routers2.conf. This works, but if a device is down then you end up with a graph based on the last actual data retrieval (probably OK). This is what we do here.
3. Live with it (probably not what you want else you'd not have posted here)
4. Set the 'unknasprev' option in the routers.cgi*Options[]. This makes the graphs behave as per native MRTG, IE, with unknown data being displayed as the last known value. This may result in misleading graphs, though, if the device is ever unavailable.

I'd suggest using the uselastupdate=yes option, as this alters the base time on the displayed graph to being the last update time of the RRD, rather than 'now'. Therefore, even if the time is 12:06 (and you're in the next timewindow) then the graph will be based at 12:05 (the end of the last updated window).

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri May 18, 2007 1:23 am 
Offline
User

Joined: Thu Nov 16, 2006 8:31 am
Posts: 8
Steve you are awesome!

I think I'm going to use the "uselastupdate" option.

I imagine you've probably thought of this, but would it be possible to mix two of the options?

Say it checks to see if the lastudate was within a window of say 10 min or so if it is, it uses the last update, if not it just shows nothing?

Thank you for your quick response and great work on this project!!!

-E


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri May 18, 2007 10:50 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Actually, the existing magic built into routers2 tries to do this - it goes back one sample if the last sample is unknown. However, it cannot always do this (due to various reasons) and sometimes it still shows the 0s.

Also, if you have 'unknaszero' set, then routers2 has no way to know when the last real data was as an unknown is read as zero anyway!

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group