Graph is not renedered because of incorrect parameter

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dma_k
Posts: 47
Joined: Thu Aug 07, 2008 6:56 am
Contact:

Graph is not renedered because of incorrect parameter

Post by dma_k »

I have created a graph with tree Data Sources, nothing tricky. However, seems like Cacti generates incorrect RRDTool command:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Ping Latencies" \
--base=1000 \
--height=120 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/hosts_ping.rrd":ping_mail_ru:MAX \
DEF:b="/var/lib/cacti/rra/hosts_ping.rrd":ping_orangle_nl:MAX \
DEF:c="/var/lib/cacti/rra/hosts_ping.rrd":ping_rapidshare_com:MAX \
LINE2:#0000FFFF:"mail.ru" \
GPRINT:a:LAST:"       Last\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:a:MAX:"Max\:%8.2lf %s\n"  \
LINE2:#FF0000FF:"orange.nl"  \
GPRINT:b:LAST:"     Last\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:b:MAX:"Max\:%8.2lf %s\n"  \
LINE2:#00FF00FF:"rapidshare.com"  \
GPRINT:c:LAST:"Last\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:c:MAX:"Max\:%8.2lf %s\n" 

RRDTool Says:

ERROR: parameter '#0000FFFF' does not represent a number in line LINE2:#0000FFFF:mail.ru
When I correct the corresponding lines to:

Code: Select all

LINE2:a#0000FFFF:"mail.ru"  \
LINE2:b#FF0000FF:"orange.nl"  \
LINE2:c#00FF00FF:"rapidshare.com"  \
and execute the command from console, the resulting PNG is perfect. I can't understand, why cacti skips the reference just in one case, and includes it in other cases?

I've found similar cases here and here. The advice to remove and add Data Sources is not perfect, and I have already removed and created new graph.

Additional information:
Cacti Version: 0.8.7b
Cacti OS: unix
RRDTool Version: RRDTool 1.2.x
Last edited by dma_k on Fri Aug 10, 2012 5:56 pm, edited 1 time in total.
dus001
Posts: 42
Joined: Sun Aug 07, 2005 6:07 am

Post by dus001 »

Maybe you should post screenshots of your graph definition / graph template, global overview and lines definitions pages.
Hopefully someone here will see something...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The LINE graph items are not related to any data source as should be. Please correct the Graph Template accordingly
Reinhard
dma_k
Posts: 47
Joined: Thu Aug 07, 2008 6:56 am
Contact:

Post by dma_k »

dus001 wrote:Maybe you should post screenshots of your graph definition / graph template, global overview and lines definitions pages.
Hopefully someone here will see something...
I have reviewed my Graph Template and found an error in "Graph Item Inputs": The "Associated Graph Items" checkbox was not checked :) After I raised the flag, that problem went away.

Thank you for feedback!
Last edited by dma_k on Fri Aug 10, 2012 5:56 pm, edited 1 time in total.
kvone
Posts: 15
Joined: Wed Jul 25, 2012 6:05 am
Contact:

Re: Graph is not renedered because of incorrect parameter

Post by kvone »

hello. a similar problem:
When I try to watch graphics, get the error in the httpd.log:
"ERROR: parameter '#00CF00FF' does not represent a number in line AREA:#00CF00FF:In"
dma_k
Posts: 47
Joined: Thu Aug 07, 2008 6:56 am
Contact:

Re: Graph is not renedered because of incorrect parameter

Post by dma_k »

kvone wrote:hello. a similar problem
Have you tried my advise? If that does not work, then dump your RRD script and graph definition.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest