Realtime not showing graphs with COLON in COMMENT-item

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Realtime not showing graphs with COLON in COMMENT-item

Post by TIKA »

Hi All!

I have installed a Testsystem Debian-Linux 5.0, Apache 2.2, MySQL 5.0, PHP 5.2, Cacti 0.8.7d, PA 2.4, Boost 2.4, Thold 2.4 and Realtime 0.36.
It works fine, but the Realtime-plugin makes trouble.
Whenever a COMMENT-item include a COLON, the graph will not displayed. Therefor the Apache reports a RRD-Config-Error.

Example:

I have append the COMMENT-item "Last updated: |date_time|" to the interface-traffic-template.

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Traffic - eth0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10:/my/statistics/common/fonts/mono/Lucida.ttf \
--font AXIS:8:/my/statistics/common/fonts/mono/Lucida.ttf \
--font LEGEND:8:/my/statistics/common/fonts/mono/Lucida.ttf \
--font UNIT:8:/my/statistics/common/fonts/mono/Lucida.ttf \
DEF:a="/my/statistics/cacti/rra/1/16.rrd":traffic_in:AVERAGE \
DEF:b="/my/statistics/cacti/rra/1/16.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Last updated\: Mon 02 Mar 15\:25\:03 CET 2009"

RRDTool Says:

OK

Inside Cacti the graph will displayed properly, but the Realtime-plugin is leading to Apache-Error (RRD-Config-Error):

ERROR: I don't understand ': Mon 02 Mar 15:25:45 CET 2009' in command: 'COMMENT:Last updated: Mon 02 Mar 15:25:45 CET 2009'.

The first colon failed.
I make some tests, but whenever the COMMENT-item includes a colon, the graph will not displayed.
That will do: minimal content ":" and the Apache says: ERROR: I don't understand ':' in command: 'COMMENT::'.
"\:" works properly, but i have no control in terms of "|date_time|".
It looks like a quoting-problem inside the Realtime-plugin.
Aftereffects graphs like "Advanced Ping" or "Smokeping" have the same problem!

Any idea?

Many thanks!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is your RRDtool version. This would appear to have been an RRDtool version dependency that I thought we had worked out. Make sure that the Settings->General matches your Tech Support page.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Post by TIKA »

Hi Larry!

I have installed RRD from the Debian-Repository (Lenny)

cacti:~# apt-cache show rrdtool
Package: rrdtool
Priority: optional
Section: utils
Installed-Size: 1196
Maintainer: Debian RRDtool Team <rrdtool@ml.snow-crash.org>
Architecture: i386
Version: 1.3.1-4
Depends: libc6 (>= 2.7-1), libfontconfig1 (>= 2.4.0), libpixman-1-0, libpng12-0 (>= 1.2.13-4), librrd4 (>= 1.3.0), libx11-6, libxcb-render-util0 (>= 0.2.1+git1), libxcb-render0, libxcb1, libxrender1, zlib1g (>= 1:1.1.4)
Suggests: librrds-perl
Filename: pool/main/r/rrdtool/rrdtool_1.3.1-4_i386.deb
...

Cacti Settings: RRDTool Utility Version == RRDTool 1.3.x

best regards
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Try this version. I also add

Code: Select all

 dialog=yes
option to popup window.
Attachments
realtime.tgz
(35.54 KiB) Downloaded 524 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Post by TIKA »

Hi!

Super - this version is going well :-) All my graphs under test will displayed properly now!

Many thanks for your support!

Best regards
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Having done a second read I see the problem now. Ill push a new release soon.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This patch is for 0.36. Please provide feedback. The changelog is as follows:

1) Properly Support RRDtool 1.3
2) Update Graph Substitutuion to support 0.8.7c/d standard
3) Other misc changes.

If this works, I will be pushing 0.37 with the changes. Please provide FEEDBACK!

TheWitness
Attachments
graph_image_rt.zip
(9.03 KiB) Downloaded 535 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Test without errors.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
jbeining
Posts: 2
Joined: Tue Mar 10, 2009 3:28 pm

Post by jbeining »

Had same problem as TIKA. Applying the patch fixed the problem. Thanks.

-Joshua
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Post by TIKA »

Sorry - somewhat is late - 2 weeks holiday in ireland :-)
Test without errors.

Thanks
outspoken
Posts: 17
Joined: Thu Nov 20, 2008 4:51 pm

Post by outspoken »

TheWitness wrote:This patch is for 0.36. Please provide feedback. The changelog is as follows:

1) Properly Support RRDtool 1.3
2) Update Graph Substitutuion to support 0.8.7c/d standard
3) Other misc changes.

If this works, I will be pushing 0.37 with the changes. Please provide FEEDBACK!

TheWitness
you should use one thread to post all of your releases and updates. it is becoming quite difficult to track down the latest version.

it is ok to go back to the original thread and edit your original post with updated version information.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests