| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Legends written over each other. http://www.steveshipway.org/forum/viewtopic.php?f=2&t=1744 |
Page 1 of 1 |
| Author: | RuneRider [ Fri Feb 27, 2009 11:15 pm ] |
| Post subject: | Legends written over each other. |
Hi, I have the following problem. I get some of the legends on top of each other. Not sure where to change this! When using MRTG log files it's working OK. Even when I tested with mrtg-rrd.cgi it looks OK. Here's a snapshot Brgds Rune Johnsen |
|
| Author: | stevesh [ Sat Feb 28, 2009 10:32 am ] |
| Post subject: | Re: Legends written over each other. |
That's really weird, the legends are all out of place. Never seen something like this before. Can you please post: 1. version of routers2 2. version of RRDtool Perl library (can get this from the Routers2 configuration verification screen if you dont know it) 3. Contents of the .cfg file used for this Device (xxx out the community strings if you want) 4. OS version My guess is that your legend strings contain special characters or character sequences which are confusing the rendering functions in the RRD library, and so the legends are being places with reverse linefeeds before them... Thanks, Steve |
|
| Author: | RuneRider [ Wed Mar 04, 2009 4:51 am ] |
| Post subject: | Re: Legends written over each other. |
Hi Steve 1. I started with ver. 2.19, and I even updated to 2.20 Beta5 with no luck. 2. RRDTool is ver. 1.3.6 3. Here's the master CFG file. ### Global Config Options WorkDir: /var/www/mrtg/rrd IconDir: /var/www/mrtg LoadMIBs: /var/www/mrtg/MIB/fortinet.2.80.mib ### Global Defaults EnableIPv6: no WriteExpires: Yes Language: english #Extension[_]: php RunAsDaemon:Yes Interval:5 LogFormat: rrdtool PathAdd: /usr/local/rrdtool-1.3.6/bin/ LibAdd: /usr/local/rrdtool-1.3.6/lib/perl/ Title[^]: Analysis for Colours[_]: Green#00eb0c,Blue#1000ff,Red#ff0000,Violet#ff00ff Background[_]: #ffffff Include: /etc/mrtg/rrd/Aalesund-AES.cfg Include: /etc/mrtg/rrd/Bardufoss-BDU.cfg Include: /etc/mrtg/rrd/Bergen-BGO.cfg Include: /etc/mrtg/rrd/Evenes-EVE.cfg Include: /etc/mrtg/rrd/Fornebu-FBU.cfg Include: /etc/mrtg/rrd/Kristiansand-KRS.cfg Include: /etc/mrtg/rrd/Gardermoen-OSL.cfg Include: /etc/mrtg/rrd/Lasham-QLA.cfg Include: /etc/mrtg/rrd/Stavanger-SVG.cfg Include: /etc/mrtg/rrd/Trondheim-TRD.cfg Include: /etc/mrtg/rrd/Warsawa-WAW.cfg Include: /etc/mrtg/rrd/Rune.cfg Here's the file were the sample is from: ######################################## # Cluster Comparison # ######################################## # Cpu Comparison Target[eve.cpu]: .1.3.6.1.4.1.12356.1.100.6.1.3.1&.1.3.6.1.4.1.12356.1.100.6.1.3.2:xxxxxxxxxx@10.20.69.1 Directory[eve.cpu]: eve Title[eve.cpu]: Procesor Usage on Cluster PageTop[eve.cpu]: <h1>Procesor Usage on Cluster</h1> Options[eve.cpu]: gauge, growright, nopercent MaxBytes[eve.cpu]: 100 YLegend[eve.cpu]: percent ShortLegend[eve.cpu]: % Colours[eve.cpu]: LightRed#ff6f6f,DarkRed#ab0000,Blue#1000ff,Violet#ff00ff LegendI[eve.cpu]: CPU usage Unit 1 LegendO[eve.cpu]: CPU usage Unit 2 Legend1[eve.cpu]: Total CPU Used on Unit 1 Legend2[eve.cpu]: Total CPU Used on Unit 2 4. The OS is: Ubuntu 8.04.2 Thanks & Brgds Rune Johnsen |
|
| Author: | stevesh [ Wed Mar 04, 2009 10:16 am ] |
| Post subject: | Re: Legends written over each other. |
A few more questions (thanks for the info) 1. Does this happen on every graph, or just on certain ones? There's nothing that looks weird in the cfg file you posted though. 2. Can you DOWNGRADE RRDtool to 1.3.4? We use 1.3.4 for testing here, it is possible that 1.3.6 being the latest version has a formatting bug. If it works with 1.3.4 then I'll have to report this one to Tobi for fixing. I don't actually know of any way to deliberately get the effect in the graph you show using the RRDtool library calls, so currently I'm thinking its a problem with the latest library. |
|
| Author: | RuneRider [ Wed Mar 04, 2009 10:35 am ] |
| Post subject: | Re: Legends written over each other. |
Hi Steve It does happen on almost every graph, but were I measure in out network trafic it actually does not! Sample: I tried to downgrade to 1.2.19 or something without any result, but I only copied the binaries then into the bin folder for test, not the whole installation. Do you suggest to install RRDTool 1.3.4 from scratch? Thanks Brgds Rune Johnsen |
|
| Author: | stevesh [ Wed Mar 04, 2009 10:42 am ] |
| Post subject: | Re: Legends written over each other. |
Just copying the rrdtool binaries wont make any difference, as Routers2 uses the rrdtool Perl libraries so its the installed verison of them that matters (RRDs.so and the rest). If you have time, uninstalling 1.3.6 and then reinstallin 1.3.4 (including perl libraries of course) would help; make sure you dont end up with mutiple incompatible RRDs perl library files! You can use the verify page (routers.cgi?page=verify) to identify which RRD library version you're actually using. If you want to be really clever, you can install the RRDTool 1.3.4 in parallel and DONT install the perl libraries into your site_perl path, then use the libadd directivein the routers2.conf to force it to select the one you want (I do this here to test with RRD 1.2.x and 1.3.x at the same time) but you can risk making things get totally confused. I dont have time to install 1.3.6 here today (busy week) but I'll try to duplicate it using this method soon |
|
| Author: | stevesh [ Wed Mar 04, 2009 11:03 am ] |
| Post subject: | Re: Legends written over each other. |
Just to prove myself wrong I installed 1.3.6 quickly while waiting on another project. It is working correctly here for me. Your graphs seem to indicate a reverse linefeed being 'printed' in the graph before the Y legend and the graph legends. I'll need to investigate the cairo/pango libraries to see if there is a special character sequence that triggers this. |
|
| Author: | don___quixote [ Sat Jun 06, 2009 2:31 am ] |
| Post subject: | Re: Legends written over each other. |
Hi, Bit of a nooobie to all this however i have the same problem... it it helps: RRDtool 1.3.7 Routers 2.19 Fedora 10 # Created by # /usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /mrtg/images' --output /mrtg/run/mrtg.cfg private@192.168.11.1 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /mrtg/images NoMib2: Yes LogFormat: rrdtool PathAdd: /usr/local/rrdtool-1.3.7/bin/ LibAdd: /usr/local/rrdtool-1.3.7/lib/perl/5.10.0/i386-linux-thread-multi ###################################################################### # Description: 7750 # Contact: Administrator # System Name: 7750 # Location: Here #..................................................................... Target[cpu.63]:1.3.6.1.2.1.2.2.1.16.1&1.3.6.1.2.1.2.2.1.16.1:private@192.168.11.13:::::2 RouterUptime[cpu.63]: private@192.168.11.13:::::2 MaxBytes[cpu.63]: 6553600 WithPeak[cpu.63]: ymwd Title[cpu.63]: Cardiff counter 1 Factor[cpu.63]: 8 YTics[cpu.63]: 10 YTicsFactor[cpu.63]: 8 PageTop[cpu.63]: <H1>Cardiff Counter 1 (in?)</H1>= #Unscaled[cpu.63]: ymwd XSize[cpu.63]: 600 YSize[cpu.63]: 400 YLegend[cpu.63]: Bits Legend1[cpu.63]: CPU Utilization in % (Load) Legend2[cpu.63]: CPU Utilization in % (Load) Legend3[cpu.63]: Legend4[cpu.63]: LegendI[cpu.63]: In #LegendO[cpu.63]: Out options[cpu.63]: growright, unknaszero Target[cpu.57]:1.3.6.1.2.1.2.2.1.16.19&1.3.6.1.2.1.2.2.1.16.19:private@192.168.128.2:::::2 RouterUptime[cpu.57]: private@192.168.128.2:::::2 MaxBytes[cpu.57]: 6553600 WithPeak[cpu.57]: ymwd Title[cpu.57]: Corby Counter 19 (in?) Factor[cpu.57]: 8 YTics[cpu.57]: 10 YTicsFactor[cpu.57]: 8 PageTop[cpu.57]: <H1>Corby Counter 19 the (In?)</H1>= #Unscaled[cpu.57]: ymwd XSize[cpu.57]: 600 YSize[cpu.57]: 400 YLegend[cpu.57]: Bits Legend1[cpu.57]: CPU Utilization in % (Load) Legend2[cpu.57]: CPU Utilization in % (Load) Legend3[cpu.57]: Legend4[cpu.57]: LegendI[cpu.57]: In #LegendO[cpu.57]: Out options[cpu.57]: growright, unknaszero |
|
| Author: | stevesh [ Sat Jun 06, 2009 1:30 pm ] |
| Post subject: | Re: Legends written over each other. |
I think this is a problem with the graphics library and RRDTool. 1. Make sure you've the latest versions of the graphics library and fonts library 2. Run fontconfig to reinitialise the fonts database in case the font widths are stored incorrectly 3. (Re)install the latest version of RRDTool and the RRDTool Perl libraries, and make sure that Routers2/MRTG are using the correct version of RRDTool - probably best to delete or rename the old versions to prevent them from being used by accident. This might help? Ive not been able to duplicate the problem myself and it seems to be independent of the ROuters2 version - it also apparently only affects RRDTool 1.3.x (which is the one using the extra fonts) but I may be wrong there. |
|
| Author: | don___quixote [ Fri Jun 12, 2009 11:27 pm ] |
| Post subject: | Re: Legends written over each other. |
Hi Steve, Many thanks. Upgraded to Fedora 11 - Fail Upgraded to RRD 1.4 - Fail Downgraded to RRD1.2 - Solved. Winner! Cheers. BTW the book is great, makes things a lot easier. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|