[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 - Issue with text layout in generated graphs

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 3:49 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Fri May 04, 2012 3:55 am 
Offline
User

Joined: Fri May 04, 2012 3:40 am
Posts: 4
I love to use the routers2 program but I'm are running into the following issue.
All graphs are generated fine and working like a charm, but the legenda of the graphs are little messed up.
We have tried to change the layout via the config files but the results are always the same.

Also searching the net didn't give us a solution.
Attached is a print screen of a graph witch is generated with version 2.22 with the mentioned legenda.


Top
 Profile Send private message  
 
PostPosted: Mon May 07, 2012 4:06 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This is a bug in your version of RRDTool.

You don't say which version of the RRDTool libraries you are using, but you should upgrade them to avoid this problem.

_________________
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 May 08, 2012 11:51 pm 
Offline
User

Joined: Fri May 04, 2012 3:40 am
Posts: 4
Hi Steve thanks for the reply.
The verify page is telling me I'm running 1.4.3 of the library's. This is the latest version on
Debian. I have upgraded to 1.4.7 but the results are the same.
Is there a particular library I have to check regarding the version


Top
 Profile Send private message  
 
PostPosted: Wed May 09, 2012 1:24 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
We use the 1.4 trunk version, which doesnt have the issue.

It may also be cause by your pango/cairo library version against which rrdtool is running. We use cairo 1.2.4 and pango 1.14.9.

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: Mon May 21, 2012 10:37 pm 
Offline
User

Joined: Fri May 04, 2012 3:40 am
Posts: 4
I have found the solution for the messed pictures.
In the end it was not a version issue, we where running the latest versions.
The problem was some additional lines with index settings in the mrtg.cfg file.

So we have now nice pictures :P , but as there is always a but we are running into the next issue regarding the graphs :cry: .
When we we produce a summary graph from couple of routers we end up with the following picture.

It looks like there is an additional line between the router name and the ":".
We have tried a lot of things with removing and adding lines in the mrtg.cfg and routers2.cfg but always with the same result.

Again manny thanks for the help


Top
 Profile Send private message  
 
PostPosted: Thu May 31, 2012 12:37 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
For some reason, the Pango rendering fundtion is inserting a reverse linefeed at the start of any pure-text line, it seems.

I have no idea why this should be, and why it is affecting only you. My best guess is that it is something in the Pango library version, since we have equivalent RRD library versions.


Where you should be getting

<title>:<cr>

You are instead getting

<reverselinefeed><title><cr>:<cr>

If you are wanting to do further investigation, you can enable debug mode (debug=1 in the routers2.conf) and then the full RRD Command parameter array will be inserted into the HTML comments of the central frame. This can indicate if you have unexpected characters in the text.

One thing that occurs to me, is to check the format of the cfg file. If you have been editing the cfg file using Windows, it may have extraneous linefeed or carriage return characters in it (CRLF rather than LF, etc) which may be messing with the display. Routers2 assumes that the file will be in the same form as the OS reading it but this may not be the case. A trailing <CR> left by Windows might be the cause of the issue?

_________________
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: Mon Jun 11, 2012 9:34 pm 
Offline
User

Joined: Fri May 04, 2012 3:40 am
Posts: 4
Hi Steve,

The problem is solved the last lines of your last gave us a clue where to look.
We have converted te config file witt the dos2unix command.
The config is now clean and the pictures now correct.
Thanks for the help


Top
 Profile Send private message  
 
PostPosted: Tue Jun 12, 2012 11:10 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Thanks for the feedback! I will see if I can make changes to the Routers2.cgi script to automatically do a dos2unix on files as they are read, avoiding this problem in future 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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

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