[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]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing Software support and information 2013-07-26T22:41:51+13:00 http://www.steveshipway.org/forum/feed.php?f=15&t=8081 2013-07-26T22:41:51+13:00 2013-07-26T22:41:51+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16557#p16557 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]> Statistics: Posted by kamialmas — Fri Jul 26, 2013 10:41 pm


]]>
2013-01-08T19:47:39+13:00 2013-01-08T19:47:39+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16445#p16445 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
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

Statistics: Posted by stevesh — Tue Jan 08, 2013 7:47 pm


]]>
2013-01-08T19:25:04+13:00 2013-01-08T19:25:04+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16444#p16444 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
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?

Statistics: Posted by Godfrey — Tue Jan 08, 2013 7:25 pm


]]>
2013-01-05T18:03:15+13:00 2013-01-05T18:03:15+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16442#p16442 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
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

Statistics: Posted by stevesh — Sat Jan 05, 2013 6:03 pm


]]>
2013-01-04T16:31:01+13:00 2013-01-04T16:31:01+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16439#p16439 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
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.

Statistics: Posted by Godfrey — Fri Jan 04, 2013 4:31 pm


]]>
2013-01-04T16:09:23+13:00 2013-01-04T16:09:23+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16438#p16438 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
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.

Statistics: Posted by Godfrey — Fri Jan 04, 2013 4:09 pm


]]>
2013-01-04T15:12:56+13:00 2013-01-04T15:12:56+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16437#p16437 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
Forgot to say, the content of /etc/sysconfig/clock in my Redhat linux is:
======================================================

ZONE="Asia/Hong_Kong"
UTC=true
ARC=false

======================================================
Don't know if it is related.

Statistics: Posted by Godfrey — Fri Jan 04, 2013 3:12 pm


]]>
2013-01-04T15:09:48+13:00 2013-01-04T15:09:48+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16436#p16436 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
Thanks again. I can identify the similar comment as you shown below.
==================================================
<!-- R:[ClientServer1.cfg]
I:[ClientServer1-Item1]
A:[]
U:[] -->
<!--
Instance: 27094
NOCACHE[routers]
Reading: /etc/mrtg/cfg/ClientServer1.cfg ifcnt=0
NOCACHE
Invalid date 2012-12-23 for target ClientServer1-Item1!
Graph: ClientServer1-Item1
RRD: /var/www/mrtg/ClientServer1-Item1.rrd
-->
<!-- Refresh: 300 -->
<!-- Expires: +5s -->
<!-- Language: None -->
<!-- CF: Not defined -->
<!-- Processing took 0.04s -->
=====================================================

Same as your expectation, it's because the date is invalid. Inside routers2.conf, I didn't touch the setting of "dateonlyformat", or should I change it in order to align with YYYY-MM-DD?

Statistics: Posted by Godfrey — Fri Jan 04, 2013 3:09 pm


]]>
2013-01-04T14:34:05+13:00 2013-01-04T14:34:05+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16430#p16430 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]> Statistics: Posted by stevesh — Fri Jan 04, 2013 2:34 pm


]]>
2013-01-02T17:14:03+13:00 2013-01-02T17:14:03+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16428#p16428 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]> Statistics: Posted by Godfrey — Wed Jan 02, 2013 5:14 pm


]]>
2012-12-31T22:48:03+13:00 2012-12-31T22:48:03+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16427#p16427 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
1. The form submission is failing, and there is no archdate being received.
You can check your web server logs for this, and find what URL is being requested when you select a date from the dropdown. It should have 'arch=yyyy-mm-dd' in the options somewhere.

2. The option is being passed, but is today's date.
You can check this by verifying the logs as in (1), and also choosing a date further in the past.

3. The date is being received, and is parsed as not being today, but is not believed to be valid for this target.
This should not be possible (as otherwise how would it get into the menu?), but may occur in strange situations with mod_perl or similar. To test for this, enable debug mode (debug=1 in the routers2.conf) and then loog at the HTML for the central frame. There will be a large comment section at the end, giving amongst other things the archdate information and any error messages from the archive date validation.
Make sure that the directory holding the RRD files has a subdirectory 'archive' that is readable and executable by the httpd process. Unless you have set archive-mode=hash then this should have a subdirectory for the date, which again should be read/execute.

4. The interface ID is invalid for this target.
If this is the case, then you would get an error message in the debug comments, as in (3).

Steve

Statistics: Posted by stevesh — Mon Dec 31, 2012 10:48 pm


]]>
2012-12-31T21:24:21+13:00 2012-12-31T21:24:21+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16426#p16426 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
Related to the permission of rrd archive files, I've changed it to be readable by others (644) and all archive directories are 755, but cannot help.

When I select the archive date from the pull down list, it still show live data and no error message in the apache error log. Then, I tried to simply capture the URL from apache access log and open it with IE:

http://server1/cgi-bin/routers2.cgi?arc ... a=&uopts=t HTTP/1.1

It still shows the live data.

Statistics: Posted by Godfrey — Mon Dec 31, 2012 9:24 pm


]]>
2012-12-31T18:16:06+13:00 2012-12-31T18:16:06+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16418#p16418 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]>
Also, make sure the archived RRD files are readable by the web process. It is possible that they are visible, but not readable, so it fails back to the current data.

Steve

Statistics: Posted by stevesh — Mon Dec 31, 2012 6:16 pm


]]>
2012-12-31T15:01:54+13:00 2012-12-31T15:01:54+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16417#p16417 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]> Statistics: Posted by Godfrey — Mon Dec 31, 2012 3:01 pm


]]>
2012-12-31T14:00:51+13:00 2012-12-31T14:00:51+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=8081&p=16411#p16411 <![CDATA[Re: routers2.cgi: Cannot see result of rrd-archive]]> Statistics: Posted by stevesh — Mon Dec 31, 2012 2:00 pm


]]>