some thumbnails do not show up

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

cwahlin
Cacti User
Posts: 91
Joined: Fri Oct 10, 2003 7:23 am

some thumbnails do not show up

Post by cwahlin »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
cwahlin
Cacti User
Posts: 91
Joined: Fri Oct 10, 2003 7:23 am

Post by cwahlin »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
cwahlin
Cacti User
Posts: 91
Joined: Fri Oct 10, 2003 7:23 am

Post by cwahlin »

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.

Image

Image

/Carl
pheezy
Cacti User
Posts: 61
Joined: Thu Oct 26, 2006 5:30 pm

Post by pheezy »

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
ERROR: Expected some arguments after 'COMMENT:
cwahlin
Cacti User
Posts: 91
Joined: Fri Oct 10, 2003 7:23 am

Post by cwahlin »

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
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
c-c
Posts: 3
Joined: Wed Feb 21, 2007 7:23 pm

ERROR: Expected some arguments after 'COMMENT:'

Post by c-c »

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
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: 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
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
c-c
Posts: 3
Joined: Wed Feb 21, 2007 7:23 pm

Hammer party

Post by c-c »

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# 
Throwing the hammer into rrd.php solved this :P 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 :wink:.
</c-c
c-c
Posts: 3
Joined: Wed Feb 21, 2007 7:23 pm

Fixed in 0.8.6j + patches

Post by c-c »

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, :D, editing the file and applying the patch.
</c-c
cwahlin
Cacti User
Posts: 91
Joined: Fri Oct 10, 2003 7:23 am

Post by cwahlin »

Gives me a reason to upgrade ;)

I'll get it fixed tonight.

/Carl
uovgaz
Posts: 1
Joined: Fri Feb 23, 2007 1:19 pm
Location: Burlington, VT

Post by uovgaz »

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
Highway
Posts: 9
Joined: Thu Apr 19, 2007 2:18 pm

Post by Highway »

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
Attachments
Note the extra value at the end of the Total In:
Note the extra value at the end of the Total In:
localhost_traffic.png (26.87 KiB) Viewed 12869 times
Highway
Posts: 9
Joined: Thu Apr 19, 2007 2:18 pm

Post by Highway »

Nevermind... I've downloaded the patches and installed it... looks good now.

http://www.cacti.net/download_patches.php
gifty
Posts: 21
Joined: Thu Jul 17, 2008 1:47 pm

Post by gifty »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests