[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

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

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: RRd-Archive
PostPosted: Wed Mar 10, 2010 12:50 am 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
Can anybody explain to enable rrd-archive step by step.


Top
 Profile Send private message  
 
 Post subject: Re: RRd-Archive
PostPosted: Wed Mar 10, 2010 9:49 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
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: Re: RRd-Archive
PostPosted: Wed Mar 10, 2010 6:01 pm 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
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.


Top
 Profile Send private message  
 
 Post subject: Re: RRd-Archive
PostPosted: Thu Mar 11, 2010 9:38 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
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: Re: RRd-Archive
PostPosted: Thu Mar 11, 2010 11:09 pm 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
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.]
Top
 Profile Send private message  
 
 Post subject: Re: RRd-Archive
PostPosted: Fri Mar 12, 2010 9:51 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
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: Re: RRd-Archive
PostPosted: Fri Mar 12, 2010 8:21 pm 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
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
Top
 Profile Send private message  
 
 Post subject: Re: RRd-Archive
PostPosted: Mon Mar 15, 2010 9:47 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
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: Re: RRd-Archive
PostPosted: Tue Mar 16, 2010 2:23 am 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
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.


Top
 Profile Send private message  
 
 Post subject: Re: RRd-Archive
PostPosted: Wed Mar 17, 2010 2:51 am 
Offline
User

Joined: Thu Jan 28, 2010 6:06 pm
Posts: 7
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.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 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