Realtime not showing graphs with COLON in COMMENT-item
Moderators: Developers, Moderators
Realtime not showing graphs with COLON in COMMENT-item
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!
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!
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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
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
Try this version. I also add option to popup window.
Code: Select all
dialog=yes
- 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]
[size=75]Sorry for my English. [/size]
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Having done a second read I see the problem now. Ill push a new release soon.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
you should use one thread to post all of your releases and updates. it is becoming quite difficult to track down the latest version.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
it is ok to go back to the original thread and edit your original post with updated version information.
Who is online
Users browsing this forum: No registered users and 4 guests