[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/bbcode.php on line 112: 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 112: 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 112: 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 - "Current" values read zero

Cheshire Cat Computing

Software support and information
It is currently Sat Nov 08, 2025 3:29 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Sep 30, 2005 11:35 am 
Offline
Silver User

Joined: Fri Sep 30, 2005 11:31 am
Posts: 10


Top
 Profile Send private message  
 
PostPosted: Fri Sep 30, 2005 12:03 pm 
Offline
Silver User

Joined: Fri Sep 30, 2005 11:31 am
Posts: 10


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 12:19 pm 
Offline
Silver User

Joined: Fri Sep 30, 2005 11:31 am
Posts: 10


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 7:49 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Ive seen this a few times. It is caused by one of three things -

1. Race condition with data collection combined with unknaszero option.
If you have unknaszero set, then it ispossible that you are viewing the data before it is collected, so the latest data is 'unknown' which is then interpreted as zero. This is because RRD has 5-min windows on the 5-min boundary. If data collection happens at 4min50sec then for the first 4min50sec of the window it is unknown. This also explains why rescaling can fix the problem - you are generating the graph at a different time, hence may be after the data collection but still in same 5-min window.
Fix: remove unknaszero option. routers2 has a workaround for this and seeks back to previous sample if an unknown is found.

2. Race condition with data collection combined with data loss.
routers2 tries to fix this, but will only backtrack one sample (so as to avoid inaccurate calculations). If you have a missing sample, then you end up with zeroes. You can spot this because you will have occasional grey vertical lines in the graph where the data is missing (provided you dont have unknaszero set, see (1))
Fix: difficult. Check rrd has missing data, and fix reason for patchy data retrieval.

3. Userdefined graph over rrds with different data retrieval times, race condition with generation.
If a userdefined is over two rrd files, where one is collected at t+30s and one at t+4min (where t is the rrd sample time boundary), then between these two times you will get zeroes since the backtrack is not used (because *some* valid data exists in this time window). After t+4m then both have valid data, so it works. Before t+30s there is no valid data, so routers2 will automatically try to backtrack one sample window, and it is likely to work (but see (2)).

Another option for fixing is to set the 'uselastupdate' option in the routers2.conf. This will make graphs end at the last data collection time, rather than the current time. For most graphs, these are the same, or only different by 5min (in the case of a race condition). However, for a down device, it will mean the graph freezes until data is collected again, rather than moving on with a grey band.

In summary, you should first of all remove the unknaszero option (if you have it set). This may fix it. If it doesn't, then check that your data collection is at the top of the 5-min boundary (ie, at 12:00, 12:05, etc and not at 12:04, 12:08 ... ). Set the uselastupdate option in the routers2.conf (if you can put up with the downside of doing this). The root cause is tied up with the way RRDTool generates graphs and cannot be simply worked around.

_________________
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: Sun Oct 02, 2005 7:01 am 
Offline
Silver User

Joined: Fri Sep 30, 2005 11:31 am
Posts: 10
Thanks, Steve. Removing the unkaszero options seem to have fixed the problem.

I have another question for you which I'll put in a new post.

Gerard


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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