[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/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 - Is it possible to fill UNKNOWN data gap with AVERAGE?

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 4:45 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Jul 16, 2004 8:29 am 
Offline
User

Joined: Fri Jul 16, 2004 8:19 am
Posts: 2
Hey, Steve,and all the honoured members here :)

I have this total newbee question:

Can I fill that Unknown data (gray bar) gap with the AVERAGE, just like MRTG does ..
I known it wrecks my average, but nevertheless ..

Thanks in advance


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 10:00 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
MRTG doesn't actually fill with the average, it fills with the last known value (or with 0 if you have unknaszero set).

Currently, routers.cgi doesnt do this. The main reason for this is that, when I first wrote it, the people at my place of work all would rather have had grey to show 'not known' than for it to make a potentially misleading guess. It also showed host uptime in the case of servers.

Is this a feature that anyone else is interested in having? It would not be all that difficult to implement, I think -- in fact, a slightly similar procedure is used to prevent last=0 on userdefined graphs using PREV().

Steve

_________________
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  
 
PostPosted: Fri Jul 16, 2004 12:55 pm 
Offline
User

Joined: Fri Jul 16, 2004 8:19 am
Posts: 2
Hej Steve


I think this will give my <i>Routers2.cgi</i> the last finishing touch .. if succeed, indeed

But That <b>Prev()</b> function .. is it to be set in the CGI, or in my config?
I would apriciate, if you could give som details about that implementation..

May be its SO trivial to you ,Steve..
But please bear with Not-so-RDDTool-savvy me :D


Top
 Profile Send private message  
 
 Post subject: unknasprev
PostPosted: Fri Dec 15, 2006 12:33 pm 
Offline
User

Joined: Fri Apr 07, 2006 11:59 am
Posts: 9


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 12:36 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
And now, an update!

If you have the LATEST (2.17) version of routers2, you can use the new 'unknasprev' option. This will fill UNKNOWN with the PREVIOUS value - in the same way that native MRTG does. You can also still use the unknaszero option (to fill with zero) or use the routers2 default (fill with greyout).

Note that filling with previous or zero will affect the averages.

The new unknasprev option:

routers.cgi*Options[target]: unknasprev

Steve

_________________
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: Thanks !!!
PostPosted: Fri Dec 15, 2006 12:50 pm 
Offline
User

Joined: Fri Apr 07, 2006 11:59 am
Posts: 9
Wow, what took you so long? 3 minutes to respond... yeesh! :P

Thanks Steve!! Time to upgrade.

- Scott


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 12:59 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I just happened to be here...

Anyway, shows that things people ask for here really *do* make it onto the wishlist, and get added to the product.

Now, I wonder if this 'said' guy is still around, and if he'll get me something from my amazon wishlist now? :)

_________________
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: Tue Dec 04, 2007 12:57 pm 
Offline
User

Joined: Fri Apr 07, 2006 11:59 am
Posts: 9


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 6:11 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This is where the default and prepend/append targets come in useful.

routers.cgi*Options[$]: unknasprev

will add the unknasprev option to the end of the options list for all targets. Note that if you use the default target '_' then this can be replaced by any options explicitly defined for a given target.

_________________
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: Thu Dec 06, 2007 6:38 am 
Offline
User

Joined: Fri Apr 07, 2006 11:59 am
Posts: 9
Hi Steve. Thanks for the help! Can you spell it out for me a little more? What file are you adding this into?

I put it toward the top of every .cfg file I have, to get the job done (and it is working great) but I am still curious if I could have done this differently?

- Scott


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

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