| Cheshire Cat Computing https://steveshipway.org/forum/ |
|
| RRD Error: Legend too long https://steveshipway.org/forum/viewtopic.php?f=2&t=1699 |
Page 1 of 3 |
| Author: | babydr [ Fri Jan 16, 2009 9:39 am ] |
| Post subject: | RRD Error: Legend too long |
Hello Steve , I am running into difficulty with the length of a legend . Iirc , The legend is the text field that appears in the top of the .png describing the image (?) , hopefully this is correct . Please find attached a .pdf of the 'summary' display . The summary does not report the error and (as you'll see) displays the image . But I would really like to have something show there describing the graph & am looking for a method to 'substitute' something smaller if I could just find the item that gets turned into the 'legend' ? Tia , JimL <<<-- cut-n-paste -->>> RRD Error: Legend too long You can visit the configuration verification page here. RRD: /var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6.rrd Device: [mo-sw01.cfg] MO-SW01 MO - Data Processing - 4th Floor, Rack 03 Rear U27 Interface: _mo-sw01_6I-IE Interfaces: _mo-sw01_13I-IE,mo-sw01_21,mo-sw01_16,_mo-sw01_5I-IE,mo-sw01_7IE,mo-sw01_26,mo-sw01_15IE,mo-sw01_3IE,_mo-sw01_24I-IE,mo-sw01_19,mo-sw01_17IE,mo-sw01_9,mo-sw01_25,mo-sw01_22,mo-sw01_10IE,mo-sw01_6,_mo-sw01_14I-IE,mo-sw01_26IE,_mo-sw01_19I-IE,mo-sw01_20IE,mo-sw01_19IE,_mo-sw01_3I-IE,mo-sw01_21IE,mo-sw01_4,mo-sw01_5,mo-sw01_13IE,_mo-sw01_11I-IE,mo-sw01_12,mo-sw01_18,_mo-sw01_6I-IE,mo-sw01_11IE,_mo-sw01_4I-IE,_summary_,mo-sw01_16IE,mo-sw01_3,mo-sw01_12IE,_mo-sw01_20I-IE,mo-sw01_17,mo-sw01_15,mo-sw01_20,mo-sw01_8IE,mo-sw01_1IE,mo-sw01_8,mo-sw01_5IE,_mo-sw01_25I-IE,_mo-sw01_18I-IE,mo-sw01_7,mo-sw01_23,mo-sw01_13,mo-sw01_4IE,mo-sw01_9IE,_mo-sw01_21I-IE,mo-sw01_24IE,mo-sw01_10,mo-sw01_25IE,_mo-sw01_8I-IE,_mo-sw01_23I-IE,mo-sw01_14,mo-sw01_14IE,mo-sw01_18IE,_mo-sw01_15I-IE,_mo-sw01_7I-IE,mo-sw01_2IE,mo-sw01_22IE,_mo-sw01_16I-IE,_mo-sw01_9I-IE,_mo-sw01_10I-IE,_mo-sw01_26I-IE,_mo-sw01_2I-IE,mo-sw01_1,mo-sw01_23IE,_mo-sw01_12I-IE,mo-sw01_24,_mo-sw01_22I-IE,_mo-sw01_1I-IE,mo-sw01_11,_mo-sw01_17I-IE,mo-sw01_2,mo-sw01_6IE Params: /var/www/htdocs/router2cgi/graphs/mo-sw01.cfg-_mo-sw01_6I-IE-d-x2.png --imgformat PNG --base 1000 --lazy --interlaced --force-rules-legend --slope-mode -e 1232050500 -s end-2000m -u 0.1 -w 800 -h 200 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%k --title 06 mo-eb01.dsb.local. (10.1.1.209;000bdb7408fc), mo-eb03.dsb.local. (10.1.1.211;00123f5b677c), mo-eb02.dsb.local. (10.1.1.210;00123f5b6879), mo-eb-prt01.dsb.local. (10.1.1.82;001708896cf4), mo-eb04.dsb.local. (10.1.1.208;001aa05af5ae), & 06 Error Rates IN/OUT mo-eb01.dsb.local. (10.1.1.209;000bdb7408fc), mo-eb03.dsb.local. (10.1.1.211;00123f5b677c), mo-eb02.dsb.local. (10.1.1.210;00123f5b6879), mo-eb-prt01.dsb.local. (10.1.1.82;001708896cf4), mo-eb04.dsb.local. (10.1.1.208;001aa05af5ae), --vertical-label traffic in Bps HRULE:90000000#444444:90% Mark ( 90 MBps)\l HRULE:100000000#555555:AbsMax ( 100 MBps)\l DEF:in1=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6.rrd:ds0:AVERAGE DEF:out1=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6.rrd:ds1:AVERAGE CDEF:wdtest=in1,POP,TIME,3600,/,-9,+,DUP,24,/,7,%,DUP,4,LT,EXC,2,GE,+,2,LT,EXC,24,%,DUP,7,GE,EXC,21,LT,+,2,EQ,1,0,IF,0,IF CDEF:wd=wdtest,INF,0,IF AREA:wd#ffffcc CDEF:fin1=in1,8,* CDEF:fout1=out1,8,* DEF:min1=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6.rrd:ds0:MAX DEF:mout1=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6.rrd:ds1:MAX CDEF:fmin1=min1,8,* CDEF:fmout1=mout1,8,* CDEF:pcin1=fin1,100,*,90000000,/ CDEF:mpcin1=fmin1,100,*,90000000,/ CDEF:pcout1=fout1,100,*,90000000,/ CDEF:mpcout1=fmout1,100,*,90000000,/ COMMENT:6 06 mo-eb01.dsb.local. (10.1.1.209;000bdb7408fc), mo-eb03.dsb.local. (10.1.1.211;00123f5b677c), mo-eb02.dsb.local. (10.1.1.210;00123f5b6879), mo-eb-prt01.dsb.local. (10.1.1.82;001708896cf4), mo-eb04.dsb.local. (10.1.1.208;001aa05af5ae), -- MO-SW01\:\l LINE1:fin1#0000ff:Incoming traffic LINE1:fout1#00ff00:Outgoing traffic\l GPRINT:fmin1:MAX:Max In\: %6.2lf %sBps\g GPRINT:mpcin1:MAX: (%2.0lf%%)\g GPRINT:fin1:AVERAGE: Avg In\: %6.2lf %sBps\g GPRINT:pcin1:AVERAGE: (%2.0lf%%)\g GPRINT:fin1:LAST: Cur In\: %6.2lf %sBps\g GPRINT:pcin1:LAST: (%2.0lf%%)\g COMMENT:\l GPRINT:fmout1:MAX:Max Out\:%6.2lf %sBps\g GPRINT:mpcout1:MAX: (%2.0lf%%)\g GPRINT:fout1:AVERAGE: Avg Out\:%6.2lf %sBps\g GPRINT:pcout1:AVERAGE: (%2.0lf%%)\g GPRINT:fout1:LAST: Cur Out\:%6.2lf %sBps\g GPRINT:pcout1:LAST: (%2.0lf%%)\g COMMENT:\l DEF:in2=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6ie.rrd:ds0:AVERAGE DEF:out2=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6ie.rrd:ds1:AVERAGE CDEF:fin2=in2,8,* CDEF:fout2=out2,8,* CDEF:ffin2=fin2,-100000,* CDEF:ffout2=fout2,-100000,* DEF:min2=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6ie.rrd:ds0:MAX DEF:mout2=/var/www/htdocs/router2cgi/graphs/mo-sw01/mo-sw01_6ie.rrd:ds1:MAX CDEF:fmin2=min2,8,* CDEF:fmout2=mout2,8,* CDEF:ffmin2=fmin2,-100000,* CDEF:ffmout2=fmout2,-100000,* CDEF:pcin2=ffin2,100,*,-800000,/ CDEF:mpcin2=ffmin2,100,*,-800000,/ CDEF:pcout2=ffout2,100,*,-800000,/ CDEF:mpcout2=ffmout2,100,*,-800000,/ COMMENT:06 06 Error Rates IN/OUT mo-eb01.dsb.local. (10.1.1.209;000bdb7408fc), mo-eb03.dsb.local. (10.1.1.211;00123f5b677c), mo-eb02.dsb.local. (10.1.1.210;00123f5b6879), mo-eb-prt01.dsb.local. (10.1.1.82;001708896cf4), mo-eb04.dsb.local. (10.1.1.208;001aa05af5ae), \:\l LINE1:ffin2#ff0000:Incoming Interface Errors/sec LINE1:ffout2#00cccc:Outgoing Interface Errors/sec\l GPRINT:ffmin2:MAX:Max In Errors\: %6.2lf %sBps\g GPRINT:mpcin2:MAX: (%2.0lf%%)\g GPRINT:ffin2:AVERAGE: Avg In Errors\: %6.2lf %sBps\g GPRINT:pcin2:AVERAGE: (%2.0lf%%)\g GPRINT:ffin2:LAST: Cur In Errors\: %6.2lf %sBps\g GPRINT:pcin2:LAST: (%2.0lf%%)\g COMMENT:\l GPRINT:ffmout2:MAX:Max Out Errors\:%6.2lf %sBps\g GPRINT:mpcout2:MAX: (%2.0lf%%)\g GPRINT:ffout2:AVERAGE: Avg Out Errors\:%6.2lf %sBps\g GPRINT:pcout2:AVERAGE: (%2.0lf%%)\g GPRINT:ffout2:LAST: Cur Out Errors\:%6.2lf %sBps\g GPRINT:pcout2:LAST: (%2.0lf%%)\g COMMENT:\l CDEF:greyout=0,in1,UN,+,out1,UN,+,in2,UN,+,out2,UN,+,2,2,+,EQ,INF,0,IF AREA:greyout#d0d0d0 COMMENT:Thu Jan 15 11\:15\:00 2009\r Last update: Thu Jan 15 11:14:03 2009 Refresh Bookmark Zoom Out CSV Download Rescale Routers2.cgi web page Say Thanks! routers.cgi Version v2.20beta2 : © Steve Shipway 2000-2008 : http://www.steveshipway.org/software/ Current system load average: 0.28 0.14 0.15 Page took 0.71s to generate RRDTool Say Thanks! <<<--- end of cut-n-paste --->>> |
|
| Author: | stevesh [ Fri Jan 16, 2009 11:43 am ] |
| Post subject: | Re: RRD Error: Legend too long |
It looks as thought your 'Title[]' or 'routers.cgi*Description[]' definition is excessively long. Routers2 doesnt perform any sanity checking on this (maybe it should...) and it looks as if the title you give is so long it has blown some limit in the RRD libraries that I was not aware of. I think I should make routers2 truncate the Title at (eg) 128 chars, maybe? |
|
| Author: | babydr [ Fri Jan 16, 2009 12:22 pm ] |
| Post subject: | Re: RRD Error: Legend too long |
Hello Steve , Which of these has precedence over the other ? I'm willing to bet 'routers.cgi*Description[]' . 'Title[]' or 'routers.cgi*Description[]' That said , is there a way to Have the 'Title[]' be used instead , the 'routers.cgi*Description[]' I'd rather have as long as possible in this (so far one) case . Tia , JimL |
|
| Author: | stevesh [ Fri Jan 16, 2009 12:26 pm ] |
| Post subject: | Re: RRD Error: Legend too long |
| Author: | babydr [ Fri Jan 16, 2009 12:45 pm ] |
| Post subject: | Re: RRD Error: Legend too long |
Your Truncation fix will cure my problem . Tnx , JimL |
|
| Author: | babydr [ Sat Jan 17, 2009 6:14 am ] |
| Post subject: | Re: RRD Error: Legend too long |
Hello Steve , Sorry to pester . If you've had a chance to setup the truncation in Beta3 , Or even wehn ever you do get a chance , I'd really like to have beta3 to play with & test . Tia , JimL ps: is your 'Wish List' upto date ? |
|
| Author: | stevesh [ Sun Jan 18, 2009 10:44 am ] |
| Post subject: | Re: RRD Error: Legend too long |
The wish list still has lots in it, although it can probably be updated with a few more. I havent received many things in the last year, probably because people are buying books instead I guess. I can probably post b3 soon, I just want to get this change in, and fix the 'all graphs not including 6hr' bug mentioned in the other thread first. |
|
| Author: | babydr [ Thu Feb 05, 2009 2:39 pm ] |
| Post subject: | Re: RRD Error: Legend too long |
Sorry , Even with routers2-v2.20-Beta4 the error persists . JimL |
|
| Author: | stevesh [ Thu Feb 05, 2009 8:57 pm ] |
| Post subject: | Re: RRD Error: Legend too long |
I'll try and duplicate here - which RRDtool do you use? Here I've got 1.3.4 which may well have different limits to 1.2.x which could be why it goes OK for me. Running 2 sets of RRD libraries in parallel is awkward though. Thanks for letting me know, I'll have to get this one sorted before releasing v2.20 Did you try setting 'maxtitle=64' or something else smaller than 128 in the routers2.conf? It may just be that my default truncation limit is still too high. |
|
| Author: | babydr [ Fri Feb 06, 2009 6:01 am ] |
| Post subject: | Re: RRD Error: Legend too long |
My present version of rrdtools is ... # 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 |
|
| Page 1 of 3 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|