[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 - Monthly and Daily Total

Cheshire Cat Computing

Software support and information
It is currently Mon Nov 10, 2025 4:26 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Monthly and Daily Total
PostPosted: Tue Jul 21, 2009 9:57 pm 
Offline
User

Joined: Mon Jul 20, 2009 10:25 pm
Posts: 5
First of let me say what a fantastic piece of code works perfectly for my needs.

My boss wants a report on the total amount of traffic from our linux webservers for the previous day/month and week.

I have set up extended time in the routers2.conf, but when I click on the yesterday graph, it gives me data for the last 24 hours i.e 09:50am to 09:50am similarly the last week graph runs from last Tuesday until today.

So my first question is how do I set the yesterday graph up so it displays data for yesterday 00:00 - 23:59 and the last week graph to display data for monday to sunday?

Secondly I've looked in to the archive feature as this sounds interesting would this be more appropriate for what I need?

Mark


Top
 Profile Send private message  
 
PostPosted: Wed Jul 22, 2009 10:17 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
If you want to see totals for a specific period, IE 00:00 - 23:59, rather than a rolling last 24hours, you'll need to use the RRD Archiving. Then, you can go to the archive for the appropriate day and view the totals for that... this is what we do here.

Set up the rrd-archive script to run every night at 23:55 (for example) and routers2 will automatically spot the archives and make the date dropdown available to you. We keep archives for 3 months at daily level, then monthly for 2 years, then yearly' you may not have enough disk space to do this as it can get BIG.

Future versions may instead work by extending the RRD but this is very problematic when it comes to sanity checks... and it is not easy with the current way the graphs are specified.

_________________
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: Thu Jul 23, 2009 2:58 am 
Offline
User

Joined: Mon Jul 20, 2009 10:25 pm
Posts: 5
Thanks Steve

I will set this up to day and check back in a couple of days time.

Mark


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 12:26 am 
Offline
Silver User

Joined: Tue Nov 03, 2009 9:27 pm
Posts: 28
Hello,

i want to print out Monthly and Daily Total like i coul do with mrtg-traffic-sum a long time ago.

It seems to me that i am too blind to see se simple sollution, @ http://oss.oetiker.ch/rrdtool/forum.en. ... -td5990330
Steve wrote like it is an built in function.

How to enable it?
Or mayby where could it be accidentally disabled by myself?


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 12:48 am 
Offline
Silver User

Joined: Tue Nov 03, 2009 9:27 pm
Posts: 28
F*** I found it, in routers2.conf :oops:

I had to uncomment: the percentile....
percentile = yes

###
enabling
showtotal = yes
seems not enough :D


Top
 Profile Send private message  
 
PostPosted: Thu Jun 16, 2011 10:50 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This is because it is actually the same code function that calculates the percentile and totals. Originally, this was a noticeable CPU overhead and so was disabled by default; now with later RRDTools and faster CPUs it is not significant. The default Routers2 install now has percentile=yes included.

_________________
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  [ 6 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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