some thumbnails do not show up
Moderators: Developers, Moderators
some thumbnails do not show up
Recently, some of my thumbnails do not show up in the preview window anymore (I get text instead of the picture). If I do the full graph it works fine. When I press the link I get the graph, so it's there, it's just not showing. I have just noticed it seems to be only cisco cpu graphs that do not work.
Any ideas?
/Carl
Any ideas?
/Carl
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please check the Settings for /full/path/to/rrdtool. And be aware of the fact, that rrdtool 1.2.18 is buggy and was followed by 1.2.19.
Please post a screenshot of that failing graph. Then, please visit Graph Management, select the failing one and switch to DEBUG mode. Post the whole rrdtool graph statement found. Is the graph ok from DEBUG mode?
Reinhard
Please post a screenshot of that failing graph. Then, please visit Graph Management, select the failing one and switch to DEBUG mode. Post the whole rrdtool graph statement found. Is the graph ok from DEBUG mode?
Reinhard
I am seeing the exact same error. I am running FC6. There does not seem to be a yum update to 1.2.19 yet so I think I will just stay with the broken rrdtool until there is.pheezy wrote:I'm having the exact same issue, it only seems to affect a small subset of graphs though.
oh, I'm running centos and 1.2.18 as well. the paths to rrdtool are correct.
I see this in my httpd error logERROR: Expected some arguments after 'COMMENT:
/Carl
ERROR: Expected some arguments after 'COMMENT:'
Hi,
The problem is with COMMENT:"". Now where to look in cacti ?
It's looks like it is in Preview with graphs with several RRD in them.
My setup: FC6 fully updated.
</c-c
turning on debugging, it looks to me to be some bug with cacti. Here's the rrdtool call that I'm seeing generating the error:pheezy wrote:I'm having the exact same issue, it only seems to affect a small subset of graphs though.
oh, I'm running centos and 1.2.18 as well. the paths to rrdtool are correct.
I see this in my httpd error logERROR: Expected some arguments after 'COMMENT:
Code: Select all
/usr/bin/rrdtool graph - --imgformat=PNG --start=1172014691 --end=1172101091 --title="QLX - Detailled Memory" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2007/02/21 00\:38\:11 To 2007/02/22 00\:38\:11\c" COMMENT:" \n" --vertical-label="kilobytes" --slope-mode DEF:a="/usr/share/cacti/rra/qlx_ucd_memtotalreal_56.rrd":ucd_memTotalReal:AVERAGE DEF:b="/usr/share/cacti/rra/qlx_ucd_memavailreal_52.rrd":ucd_memAvailReal:AVERAGE DEF:c="/usr/share/cacti/rra/qlx_ucd_memshared_55.rrd":ucd_memShared:AVERAGE DEF:d="/usr/share/cacti/rra/qlx_ucd_membuffer_53.rrd":ucd_memBuffer:AVERAGE DEF:e="/usr/share/cacti/rra/qlx_ucd_memcached_54.rrd":ucd_memCached:AVERAGE CDEF:cdefc=b,-1,* AREA:a#FF0000:"" AREA:cdefc#00B99B:"":STACK COMMENT:"" AREA:d#FFF200:"" AREA:e#EAAF00:"":STACK AREA:c#837C04:"":STACK > my-test-graph.png
It's looks like it is in Preview with graphs with several RRD in them.
My setup: FC6 fully updated.
</c-c
Hammer party
Code: Select all
01:54:28 /usr/share/cacti/lib root@koko# ll rrd.php rrd.php.DIST
-rw-r--r-- 1 root root 48095 Feb 22 01:54 rrd.php
-rw-r--r-- 1 root root 47823 Feb 22 01:47 rrd.php.DIST
01:55:27 /usr/share/cacti/lib root@koko# rpm -qa | grep cacti
cacti-0.8.6i-5.fc6
01:55:40 /usr/share/cacti/lib root@koko# diff -c rrd.php.DIST rrd.php
*** rrd.php.DIST 2007-02-22 01:47:05.000000000 +0000
--- rrd.php 2007-02-22 01:54:27.000000000 +0000
***************
*** 1080,1086 ****
if ($graph_item_types{$graph_item["graph_type_id"]} == "COMMENT") {
if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
! $txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]) . $hardreturn[$graph_item_id] . "\" ";
}else {
$txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . $graph_variables["text_format"][$graph_item_id] . $hardreturn[$graph_item_id] . "\" ";
}
--- 1080,1091 ----
if ($graph_item_types{$graph_item["graph_type_id"]} == "COMMENT") {
if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
! $cccc = str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]) . $hardreturn[$graph_item_id];
! if ($cccc == "") {
! $cccc = " ";
! }
! $txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . $cccc . "\" ";
! /* $txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . str_replace(":", "\:", $graph_variables["text_format"][$graph_item_id]) . $hardreturn[$graph_item_id] . "\" "; */
}else {
$txt_graph_items .= $graph_item_types{$graph_item["graph_type_id"]} . ":\"" . $graph_variables["text_format"][$graph_item_id] . $hardreturn[$graph_item_id] . "\" ";
}
01:55:58 /usr/share/cacti/lib root@koko#
No more "ERROR: Expected some arguments after 'COMMENT:'" errors and graphics displaying OK.
This is a crappy solution. Use it at your own risk .
</c-c
Fixed in 0.8.6j + patches
Opss... it's fixed in 0.8.6j + patches:
http://www.cacti.net/download_patches.p ... ion=0.8.6j
Problems Displaying RRDtool Graph Thumbnails 2007/02/02
This patch resolves an issue where Graph Thumbnails do not display properly due to an empty comment tag.
there. maybe the patch can be used against 0.8.6i. Yup, , editing the file and applying the patch.
</c-c
http://www.cacti.net/download_patches.p ... ion=0.8.6j
Problems Displaying RRDtool Graph Thumbnails 2007/02/02
This patch resolves an issue where Graph Thumbnails do not display properly due to an empty comment tag.
there. maybe the patch can be used against 0.8.6i. Yup, , editing the file and applying the patch.
</c-c
I was using the 'Interface - Traffic (bits/sec, Total Bandwidth)' graph template and experiencing the missing thumbnails as well as the 'ERROR: Expected some arguments after 'COMMENT:'' errors in my Apache log. Changing the Total In and Total Out graph item types from COMMENT to GPRINT stopped the error messages in the logs and my graph thumbnails reappeared!
The patches did not work so well on my installation, in fact, it prevented the display of ANY images. (Using CentOS 4.4, cacti-0.8.6j)
YMMV
The patches did not work so well on my installation, in fact, it prevented the display of ANY images. (Using CentOS 4.4, cacti-0.8.6j)
YMMV
I too have the same problem with not getting an thumbnail image when in the preview mode and I've fixed the problem also using what you've discovered...uovgaz wrote:I was using the 'Interface - Traffic (bits/sec, Total Bandwidth)' graph template and experiencing the missing thumbnails as well as the 'ERROR: Expected some arguments after 'COMMENT:'' errors in my Apache log. Changing the Total In and Total Out graph item types from COMMENT to GPRINT stopped the error messages in the logs and my graph thumbnails reappeared!
The patches did not work so well on my installation, in fact, it prevented the display of ANY images. (Using CentOS 4.4, cacti-0.8.6j)
YMMV
Now, the problem I see is that because it's a GPRINT now, it's going to try to print the average/min/max/last in addition to the calculated value from the "Total In: |sum:auto:current:2| function. See image
- Attachments
-
- Note the extra value at the end of the Total In:
- localhost_traffic.png (26.87 KiB) Viewed 12871 times
Nevermind... I've downloaded the patches and installed it... looks good now.
http://www.cacti.net/download_patches.php
http://www.cacti.net/download_patches.php
Who is online
Users browsing this forum: No registered users and 1 guest