Cacti with External RRD Files: Empty Graphs

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

Moderators: Developers, Moderators

Post Reply
chiggins
Posts: 5
Joined: Tue Sep 11, 2007 9:27 am

Cacti with External RRD Files: Empty Graphs

Post by chiggins »

Hey there,

I'm setting up Cacti to use RRD's created by nagiosgraph / rrdtool and have set up one set of graphs following these instuctions:

http://forums.cacti.net/viewtopic.php?t=12202

All of the data seems to be present in the Legend area, permissions are ok, and I'm getting no errors, but my graphs are blank. The X data timeline is correct, but the Y data is always 0.0 - 1.0 and the graph is empty, just gridlines.

The odd thing is that, using drraw and the same rrd, rrdtool creates the graph just fine with data graphed as you'd expect. So, I'm guessing its something in my Cacti setup / settings.

Anyone see something similar?

Thanks for any help.

-Chris
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit this graph at Graph Management and switch to DEBUG. Post the whole rrdtool graph statement, please
Reinhard
chiggins
Posts: 5
Joined: Tue Sep 11, 2007 9:27 am

Post by chiggins »

Thanks for the reply. Here it is:

RRDTool Command:

/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="trender01 - Root Partition Template" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":blockpct:AVERAGE \
DEF:b="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":free:AVERAGE \
DEF:c="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":inodepct:AVERAGE \
DEF:d="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":max:AVERAGE \
DEF:e="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":root:AVERAGE \
DEF:f="/usr/local/nagios/nagiosgraph/rrd/trender01/Root%20Partition___%2F.rrd":user:AVERAGE \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
GPRINT:c:LAST:"Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
GPRINT:d:LAST:"Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
GPRINT:f:LAST:"Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's an easy one: The Graph Template simply does not include any LINEx/AREA statement but LEGENDs only. You may consider the first link of my signature to learn how to add a LINEx or an AREA
Reinhard
chiggins
Posts: 5
Joined: Tue Sep 11, 2007 9:27 am

Post by chiggins »

Thanks! I'm glad it was an easy one.

Last question: Is there any where that describes the difference between these Graph Types? I see them mentioned in the docs, but without any details.

Thanks again,

-C
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

chiggins wrote:Thanks! I'm glad it was an easy one.

Last question: Is there any where that describes the difference between these Graph Types? I see them mentioned in the docs, but without any details.
LINEx will draw a line. x=1 is smallest, x=3 is thickest. AREA will draw a line that's filled up from to x-axis up to that very line.
Documented at "man rrdgraph"
Reinhard
chiggins
Posts: 5
Joined: Tue Sep 11, 2007 9:27 am

Post by chiggins »

Very cool. Thanks.
cmaythecuzz
Posts: 2
Joined: Thu Apr 11, 2013 11:59 am

Re: Cacti with External RRD Files: Empty Graphs

Post by cmaythecuzz »

I seem to be having a similar issue . Graphs show numbers but nothing in the graph itself. Debug output below. Any help would be appreciated.

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='Nginx Prod LB1' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/usr/share/cacti/site/rra/prod-lb1/nginx.rrd":'reading':AVERAGE \
DEF:b="/usr/share/cacti/site/rra/prod-lb1/nginx.rrd":'requests':AVERAGE \
DEF:c="/usr/share/cacti/site/rra/prod-lb1/nginx.rrd":'total':AVERAGE \
DEF:d="/usr/share/cacti/site/rra/prod-lb1/nginx.rrd":'waiting':AVERAGE \
DEF:e="/usr/share/cacti/site/rra/prod-lb1/nginx.rrd":'writing':AVERAGE \
AREA:a#FFAB00FF:"Reading\:" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s" \
GPRINT:a:MIN:"Minimum\:%8.2lf %s\n" \
AREA:b#FF6044FF:"Requests\:":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" \
GPRINT:b:MIN:"Minimum\:%8.2lf %s\n" \
AREA:c#FF5576FF:"Total\:":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s" \
GPRINT:c:MIN:"Minimum\:%8.2lf %s\n" \
AREA:d#FF4105FF:"Waiting":STACK \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s" \
GPRINT:d:MIN:"Minimum\:%8.2lf %s\n" \
AREA:e#ED5394FF:"Writing":STACK \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s" \
GPRINT:e:MIN:"Minimum\:%8.2lf %s\n"
RRDTool Says:
OK
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti with External RRD Files: Empty Graphs

Post by gandalf »

A screenshot of that graph will help
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests