[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 - RRd-Archive
Cheshire Cat Computing
http://www.steveshipway.org/forum/

RRd-Archive
http://www.steveshipway.org/forum/viewtopic.php?f=15&t=4142
Page 1 of 2

Author:  sudipkk [ Wed Mar 10, 2010 12:50 am ]
Post subject:  RRd-Archive

Can anybody explain to enable rrd-archive step by step.

Author:  stevesh [ Wed Mar 10, 2010 9:49 am ]
Post subject:  Re: RRd-Archive

There are instructions in the text file accompanying the rrd-archive script. Basically, you need to edit the rrd-archive script to specify the loaction of your routers2.conf file (and possibly the location of Perl in the #! line, if you are on a UNIX system) and then use a scheduler to run the script every night at about 23:45.

Author:  sudipkk [ Wed Mar 10, 2010 6:01 pm ]
Post subject:  Re: RRd-Archive

I am using Windows system.I already added the location of those 2 files u mentioned.below is the snap shot of rrd-archive.pl.....

C:\mrtg\perl\bin
vim:ts=4


################# CONFIGURABLE LINES START ###############
# default location of routers.conf file
my( $conffile ) = "C:\mrtg\mrtg\bin\routers2.conf";
# default number of days after which to expire archived logs
my( $expiredaily ) = 31;
my( $expiremonthly ) = 12; # 1st of the month are Monthly


also want to know...instead of running rrd-archive.pl through task schedular...if i start it manually,will it create archive directory and archived the data.

will i have to change anything on rrd-archive.conf file or any other file?Pls. help,i require this feature enabled badly.

Author:  stevesh [ Thu Mar 11, 2010 9:38 am ]
Post subject:  Re: RRd-Archive

The rrd-archive.conf is simply an example of the lines to add to routers2.conf. The file is not required.

The first line should start with a #!

The vim line should start with a # or be removed.

Because you are using Windows, you might need to use a DOUBLE \ for a path separator in the $conffile definition (in everything other than Windows, a backstroke is the escape character)

You can run rrd-archive.pl manually if you want ant it should work. However, for the archives to be created correctly, it needs to be run every night just before midnight. You should run it manually the first time anyway to make sure there are no error messages.

Author:  sudipkk [ Thu Mar 11, 2010 11:09 pm ]
Post subject:  Re: RRd-Archive

Hi Steve,

upon double click on rrd-archive.pl is opening a command prompt...and showing some error msg.But i am not able to capture it properly bcos its closed so fast.I am attaching the msg with this post..first 2 line in rrd-archive.pl is as below...

#!C:\mrtg\perl\bin
vim:ts=4

also my( $conffile ) = "c:\mrtg\mrtg\bin\routers2.conf";


want to know..
1.rrd-archive.pl can be in any place or path or it has to be in some specific path.Currently i am manually try to run within below mentioned path...
C:\mrtg\routers2-v2.20\extras

2.When i run it manually will it automaticly created archive folder in where current .rrd files are there or i have to create it manually and then try?Currently i am seeing .rrd files are in C:\mrtg\wwwroot path.

3.R u saying that path should be..c:\\mrtg\\mrtg\\bin\\routers2.conf

Attachments:
[The extension doc has been deactivated and can no longer be displayed.]

Author:  stevesh [ Fri Mar 12, 2010 9:51 am ]
Post subject:  Re: RRd-Archive

Rather than clicking on the file in Explorer, open a command prompt and run it form the command line. Then you will be able to see the errors correctly.

The error message you attach indicates that you have made an error when configuring the script and put incorrect or too many backstrokes somewhere. You'll need to show me your modified script so I can spot the mistake.

1. You should be able to run it from any location.

2. It will automatically create the directory.

3. Yes. Because Windows uses backstrokes for path separator, you sometimes need to double them. This only affects windows (not unix, linux, macos etc), although Perl attempts to work around this problem.

Author:  sudipkk [ Fri Mar 12, 2010 8:21 pm ]
Post subject:  Re: RRd-Archive

Steve...thanks for ur support...

i am attaching the rrd-archive.pl for ur reference....also i am pasting u the error what i am getting when i run the script...

this is the error i got first when i run the script...

C:\mrtg\routers2-v2.20\extras>rrd-archive.pl
"use" not allowed in expression at C:\mrtg\routers2-v2.20\extras\rrd-archive.pl
line 41, at end of line
syntax error at C:\mrtg\routers2-v2.20\extras\rrd-archive.pl line 41, near "use
strict"
BEGIN not safe after errors--compilation aborted at C:\mrtg\routers2-v2.20\extra
s\rrd-archive.pl line 174.

Then i change the use strict; as #use strict;i got the below msg...

C:\mrtg\routers2-v2.20\extras>rrd-archive.pl
Can't modify constant item in scalar assignment at C:\mrtg\routers2-v2.20\extras
\rrd-archive.pl line 44, near "my"
syntax error at C:\mrtg\routers2-v2.20\extras\rrd-archive.pl line 44, near "my"
Illegal declaration of subroutine main::readconf at C:\mrtg\routers2-v2.20\extra
s\rrd-archive.pl line 65.

i reverted back as use strict; and change the \ seperator as \\

c:\\mrtg\\mrtg\\bin\\routers2.conf...and got the below error...

C:\mrtg\routers2-v2.20\extras>rrd-archive.pl
Can't modify constant item in scalar assignment at C:\mrtg\routers2-v2.20\extras
\rrd-archive.pl line 44, near "my"
syntax error at C:\mrtg\routers2-v2.20\extras\rrd-archive.pl line 44, near "my"
Illegal declaration of subroutine main::readconf at C:\mrtg\routers2-v2.20\extra
s\rrd-archive.pl line 65.

i kept it as usual for ur reference...attaching the same...

Attachments:
rrd-archive.pl [9.52 KiB]
Downloaded 986 times

Author:  stevesh [ Mon Mar 15, 2010 9:47 am ]
Post subject:  Re: RRd-Archive

You have accidentally removed the '#' from the start of the second line. This is the comment mark and so the second line is now a syntax error. Put the '#' back at the start of the line and it should work.

Author:  sudipkk [ Tue Mar 16, 2010 2:23 am ]
Post subject:  Re: RRd-Archive

Thanks Steve,it's working and i also see a Graph drop down in the page...thanks a lot for ur help and i would like to say it's a fantastic work.I will check it and will let you know if i require anything.

Author:  sudipkk [ Wed Mar 17, 2010 2:51 am ]
Post subject:  Re: RRd-Archive

Hi Steve..

what i am seeing that the drop down of every date,so that we can see prvious data,can we have anything so that we can see data of date range.

Page 1 of 2 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/