[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 - routers2.cgi: Cannot see result of rrd-archive

Cheshire Cat Computing

Software support and information
It is currently Tue Nov 11, 2025 10:12 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Jan 04, 2013 4:09 pm 
Offline
User

Joined: Mon Dec 24, 2012 9:48 pm
Posts: 9
Hi Steve,

When I look into routers2.cgi, the "Invalid data" message logged by line 9622. In the line, it will check the existence of archive directory

(e.g. /var/www/mrtg./.archive./.2012-12-21),

but in my archive rrd, it is located in

/var/www/mrtg/archive/<number>/archive/ClientServer1-Item1.rrd.d/2012-12-21.rrd

In my case, the directory of archive is different that directory named as number and a rrd.d directory.


Top
 Profile Send private message  
 
PostPosted: Fri Jan 04, 2013 4:31 pm 
Offline
User

Joined: Mon Dec 24, 2012 9:48 pm
Posts: 9
Hi Steve,

Would like to rectify that my archive directory is

/var/www/mrtg/archive/<number>/ClientServer1-Item1.rrd.d/2012-12-21.rrd

where the directory named as number should be created by makehash function in rrd-archive.


Top
 Profile Send private message  
 
PostPosted: Sat Jan 05, 2013 6:03 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The RRD Archiving system has two modes - old, and hash. In 'old' mode, the archives went in archive/yyyy-mm-dd/<rrdname>, but in 'hash' mode, they go in archive/<number>/<rrdname>.d/yyyy-mm-dd.rrd. The change was because the search times for available archives went through the roof when the number of rrd files was too big.

Sounds as if your archiving script is running in 'hash' mode, but your routers2 is running in 'norma'l mode... The date is being rejected because Routers2 cannot see an archive anywhere it expects one.

Now, why is this? To run Routers2 in 'hash' mode, you need the latest Routers2, and the archive-mode=hash option in the routers2.conf. I suspect you may be missing the latter?

It may be a good idea for me to make Routers2 auto-detect hash mode in later versions.

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: Tue Jan 08, 2013 7:25 pm 
Offline
User

Joined: Mon Dec 24, 2012 9:48 pm
Posts: 9
Good day Steve

The routers2.cgi is in version 2.22. I think it is the latest version. When check the .conf file, the archive-mode has already turn on as

archive-mode = hash

Tried to command this field and the pulldown list will be disappeared. (maybe, absent of this field cause it unable to find the right archive directory).

Then, I tried to go into deep in routers2.cgi, seems that do_archive function is not being called due to archive parameter is not set. Traced back and it may be set around line 9101

if( $q->param('archive') ){
$archive = $q->param('archive');
}

I tried to replace the word from 'archive' to 'arch' (as the URL shown is arch=2012-12-21. It can call do_archive function, but the page show that

"This graph has been deleted."

Would it be the reason that it cannot find the archive rrd files?


Top
 Profile Send private message  
 
PostPosted: Tue Jan 08, 2013 7:47 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
You are confusing the image archiving (arch param) with the RRD archive (archive param). This is not the correct change to make. The do_archive is used to create archived images and is not relevant in this case.

If you have archive-mode=hash then it should look in the archive/<number>/<rrd>.d directory for archived RRD files; else it will look in archive/<date> for archived RRD files. So, if you are running the rrd-archive script in hash mode, then you must have this option in order for the Routers2 script to see the archives and for dates to appear in the dropdown.

Since dates appear in the dropdown, it seems this is configured correctly, unless you have old-style archives in parallel which would certainly cause some sort of confusion.

In version 2.22, the ;'hash' mode was not officially available and so may well be bugged. It is not listed as new until v2.23beta1...

I can probably send you a copy of 2.23beta1? This can also support merging the archived RRD files into a single extra-large RRD file and provide a popup calendar for date selection. Email me directly on steve@steveshipway.org if you want a copy of this.

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 26, 2013 10:41 pm 
Offline
User

Joined: Fri Jul 05, 2013 8:17 pm
Posts: 1
sometimes PT3 display this message on the place of the stats


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

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