|
|
| Author |
Message |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Sun Feb 18, 2007 2:13 pm Post subject: 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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Sun Feb 18, 2007 2:44 pm Post subject: |
|
|
This is usually due to version mismatch between "rrdtool -v" and "Settings -> RRDTool Utilities Version". And please check font path settings. They must match the exact font name, not the path to the font directory
Reinhard
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Mon Feb 19, 2007 1:59 am Post subject: |
|
|
I'm running rrdtool 1.2.18-1.
I think the problem began last time yum-update ran, and yes, rrdtool was updated then. I have 1.2.x in the settings for rrdtool. Font path seems fine.
/Carl
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Mon Feb 19, 2007 8:05 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Mon Feb 19, 2007 4:23 pm Post subject: |
|
|
I have attached 2 screenshots. The first of the "error", the second the debug which seems fine. I think I will try 1.2.19.
/Carl
|
|
| Back to top |
|
 |
pheezy Cacti User
Joined: 26 Oct 2006 Posts: 54
|
Posted: Tue Feb 20, 2007 11:19 am Post subject: |
|
|
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 log
| Quote: | | ERROR: Expected some arguments after 'COMMENT: |
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Tue Feb 20, 2007 3:38 pm Post subject: |
|
|
| 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 log
| Quote: | | ERROR: Expected some arguments after 'COMMENT: |
|
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.
/Carl
|
|
| Back to top |
|
 |
c-c
Joined: 21 Feb 2007 Posts: 3
|
Posted: Wed Feb 21, 2007 8:20 pm Post subject: ERROR: Expected some arguments after 'COMMENT:' |
|
|
Hi,
| 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 log
| Quote: | | ERROR: Expected some arguments after 'COMMENT: |
|
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:
| Code: | | /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 |
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
|
|
| Back to top |
|
 |
c-c
Joined: 21 Feb 2007 Posts: 3
|
Posted: Wed Feb 21, 2007 9:04 pm Post subject: Hammer party |
|
|
| Code: | 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# |
Throwing the hammer into rrd.php solved this for me!
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
|
|
| Back to top |
|
 |
c-c
Joined: 21 Feb 2007 Posts: 3
|
Posted: Wed Feb 21, 2007 9:22 pm Post subject: Fixed in 0.8.6j + patches |
|
|
Opss... it's fixed in 0.8.6j + patches:
http://www.cacti.net/download_patches.php?version=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
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Thu Feb 22, 2007 3:41 am Post subject: |
|
|
Gives me a reason to upgrade
I'll get it fixed tonight.
/Carl
|
|
| Back to top |
|
 |
uovgaz
Joined: 23 Feb 2007 Posts: 1 Location: Burlington, VT
|
Posted: Fri Feb 23, 2007 1:25 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Highway
Joined: 19 Apr 2007 Posts: 4
|
Posted: Thu Apr 19, 2007 2:39 pm Post subject: |
|
|
| 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 |
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...
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
| Description: |
| Note the extra value at the end of the Total In: |
|
| Filesize: |
26.87 KB |
| Viewed: |
2221 Time(s) |

|
|
|
| Back to top |
|
 |
Highway
Joined: 19 Apr 2007 Posts: 4
|
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Mon Jul 21, 2008 1:59 pm Post subject: |
|
|
Hi,
I am still getting these thumbnail problem, and i am not able to rectify it.
Thumbnails do not show up, and sometimes it shows broken links for thumbnails.
Please help me .
Thank you
-Vineet Singh
|
|
| Back to top |
|
 |
|