[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]/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 2009-02-28T14:15:25+13:00 https://steveshipway.org/forum/feed.php?f=2&t=1699 2009-02-28T14:15:25+13:00 2009-02-28T14:15:25+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8670#p8670 <![CDATA[Re: RRD Error: Legend too long]]>
My reason for wanting to get a longer string in the 'legend' (for instance) is I have points in the network with little hubs stacked all over the place & I want this to stand out to the viewer like a sore thumb , I do this by collecting all the mac-address's (and other data) associated with a managed switches port & display the collected information in that ports 'legend' . This is what caused this Threads subject matter .

This is where I could very well use "%EXEC()%" functionatlity with all those variables I spoke of in the other thread , Plus those already in the book .

Tnx , JimL

Statistics: Posted by babydr — Sat Feb 28, 2009 2:15 pm


]]>
2009-02-28T10:36:09+13:00 2009-02-28T10:36:09+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8667#p8667 <![CDATA[Re: RRD Error: Legend too long]]> Statistics: Posted by stevesh — Sat Feb 28, 2009 10:36 am


]]>
2009-02-27T12:54:10+13:00 2009-02-27T12:54:10+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8661#p8661 <![CDATA[Re: RRD Error: Legend too long]]>
[quote="stevesh"]Both things should be comparable. The 'comment' is in fact the title from the sub-Target being added as a subheading in the legend of the userdefined graph.
Have you tried the max-title=64 or max-title=128 under 2.20beta5? It may work now as tests have been added in this part as well.[/quote]

Ok , I think you are saying that 'comment' & 'Title' are the same as far as routers2 & mrtg are concerned ?

Yes I have & it truncates all the lines properly , ie: no more errors .

But I am noticing that the 'string' is Centered in the graph at the top .
ie: "john's very long string" shows up like .
['s very long str]

is this a function of "rrdtool graph" or some other entitiy .

Twyl , JimL

Statistics: Posted by babydr — Fri Feb 27, 2009 12:54 pm


]]>
2009-02-25T13:08:00+13:00 2009-02-25T13:08:00+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8656#p8656 <![CDATA[Re: RRD Error: Legend too long]]> Have you tried the max-title=64 or max-title=128 under 2.20beta5? It may work now as tests have been added in this part as well.

Statistics: Posted by stevesh — Wed Feb 25, 2009 1:08 pm


]]>
2009-02-25T12:56:15+13:00 2009-02-25T12:56:15+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8654#p8654 <![CDATA[Re: RRD Error: Legend too long]]> I would like to present as much data to my support people as possible & If I can get away with a much longer "max-title" than "max-comment" I would really like to .
Tia , JimL

Statistics: Posted by babydr — Wed Feb 25, 2009 12:56 pm


]]>
2009-02-21T14:50:32+13:00 2009-02-21T14:50:32+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8643#p8643 <![CDATA[Re: RRD Error: Legend too long]]> Beta??? whenever you can/feel like it/feel it is time .
Tnx , JimL

Statistics: Posted by babydr — Sat Feb 21, 2009 2:50 pm


]]>
2009-02-20T17:32:37+13:00 2009-02-20T17:32:37+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8638#p8638 <![CDATA[Re: RRD Error: Legend too long]]> I'll post a beta soon, but no time today :(. Maybe Monday

Statistics: Posted by stevesh — Fri Feb 20, 2009 5:32 pm


]]>
2009-02-19T15:04:18+13:00 2009-02-19T15:04:18+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8635#p8635 <![CDATA[Re: RRD Error: Legend too long]]>
[quote="stevesh"]I now have a fix that seems to work (still testing). This is from the usr_params subroutine:
(At the start)

I found 'my($titlemaxlen)' in 'sub make_graph(@)' at ~ line 5857 in 2.20B4 and added the changes to the file .

[code] my($titlemaxlen) = 128;
$titlemaxlen = $config{'routers.cgi-maxtitle'}?$config{'routers.cgi-maxtitle'}:128;
[/code]
(Further down)

I found 'if($mirroring and $lin and $lout )' at ~ line 4858 in 2.20B4 and added the changes to the file .
note: after the changes made above .

[code] if($mirroring and $lin and $lout ) {
$lout = "";
$lin = $interfaces{$curif}{desc};
$lin = substr($lin,0,$titlemaxlen) if(length($lin)>$titlemaxlen);
$lin =~ s/:/\\:/g;
$lin = ":$lin\\l";
} else {
if( !$interfaces{$interface}{nolegend} and
!$interfaces{$interface}{nodetails} and
!$interfaces{$interface}{nodesc} and
$dwmy !~ /s/ and
!$interfaces{$interface}{noi} and
!$interfaces{$interface}{noo}) {
my($tmpt) = $interfaces{$curif}{desc};
$tmpt = substr($tmpt,0,$titlemaxlen)
if(length($tmpt)>$titlemaxlen);
push @params, "COMMENT:".decolon("$tmpt:\\l");
}
}
[/code][/quote]

I then receive this ...

[quote]
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
[/quote]

And this in /var/log/http/error_log

[quote]
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4864.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4864.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4875.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4876.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Execution of /var/www/cgi-bin/routers2.cgi aborted due to compilation errors.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Premature end of script headers: routers2.cgi
[/quote]

So it seems I have misentered somethign but I sure don't see it .
See the attached diff to see if I did it right .
Hth , JimL[attachment=0]routers2_cgi-diffs-20090218.txt[/attachment]

Statistics: Posted by babydr — Thu Feb 19, 2009 3:04 pm


]]>
2009-02-19T11:48:29+13:00 2009-02-19T11:48:29+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8634#p8634 <![CDATA[Re: RRD Error: Legend too long]]> Statistics: Posted by stevesh — Thu Feb 19, 2009 11:48 am


]]>
2009-02-19T11:31:53+13:00 2009-02-19T11:31:53+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8632#p8632 <![CDATA[Re: RRD Error: Legend too long]]> Statistics: Posted by stevesh — Thu Feb 19, 2009 11:31 am


]]>
2009-02-19T11:19:02+13:00 2009-02-19T11:19:02+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8631#p8631 <![CDATA[Re: RRD Error: Legend too long]]> tia , JimL

+- This portion .
vvvvvvvvvv
COMMENT:6 06 mo-eb01.dsb.local. (10.1.1.209;XXXXXX), mo-eb03.dsb.local. (10.1.1.211;XXXXXX), mo-eb02.dsb.local. (10.1.1.210;XXXXXX), mo-eb-prt01.dsb.local. (10.1.1.82;XXXXXX), mo-eb04.dsb.local. (10.1.1.208;XXXXXX),

Statistics: Posted by babydr — Thu Feb 19, 2009 11:19 am


]]>
2009-02-19T11:15:09+13:00 2009-02-19T11:15:09+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8630#p8630 <![CDATA[Re: RRD Error: Legend too long]]> The special chars in the offending string are ...
'(' ';' ')' ','

all the rest are [:alnum:] .

Statistics: Posted by babydr — Thu Feb 19, 2009 11:15 am


]]>
2009-02-09T10:29:23+13:00 2009-02-09T10:29:23+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8602#p8602 <![CDATA[Re: RRD Error: Legend too long]]> Statistics: Posted by stevesh — Mon Feb 09, 2009 10:29 am


]]>
2009-02-06T07:07:56+13:00 2009-02-06T07:07:56+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8598#p8598 <![CDATA[Re: RRD Error: Legend too long]]> I have even place a line in routers.conf with 'maxtitle=' at both 128 & 64 and t3ested each seperately , the error persisted even with these in place .

Fmi , Where in routers2.conf does the 'maxtitle=' belong , maybe I am just not getting it in the right place ?

Also I am wondering if I might have buggered up somewhere else ? an older package that need updating ?... But after checking the (well most of them anyway) I an within a sub-version of being the lastest on all packages mentioned in the

Tia , JimL

Statistics: Posted by babydr — Fri Feb 06, 2009 7:07 am


]]>
2009-02-06T06:01:48+13:00 2009-02-06T06:01:48+13:00 https://steveshipway.org/forum/viewtopic.php?t=1699&p=8597#p8597 <![CDATA[Re: RRD Error: Legend too long]]>
# rrdtool --version
RRDtool 1.2.26 Copyright 1997-2007 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Feb 22 2008 10:01:43

I'll get 1.3.x & see if that changes my problem any .

No I haven't tried the 'maxtitle=' variable . Mainly because I didn't see it documented , But then all I did was diff the release routers.conf against my copy to see what may have changed there .

I'll report back in a bit after I get rrdtools-1.3.x in place .

Tnx & Twyl , JimL

Statistics: Posted by babydr — Fri Feb 06, 2009 6:01 am


]]>