Cacti with External RRD Files: Empty Graphs
Moderators: Developers, Moderators
Cacti with External RRD Files: Empty Graphs
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
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
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"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 \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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
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"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 \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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.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.
Documented at "man rrdgraph"
Reinhard
-
- Posts: 2
- Joined: Thu Apr 11, 2013 11:59 am
Re: Cacti with External RRD Files: Empty Graphs
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\:" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
GPRINTMIN:"Minimum\:%8.2lf %s\n" \
AREA:b#FF6044FF:"Requests\:":STACK \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
GPRINTMIN:"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
/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\:" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
GPRINTMIN:"Minimum\:%8.2lf %s\n" \
AREA:b#FF6044FF:"Requests\:":STACK \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
GPRINTMIN:"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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti with External RRD Files: Empty Graphs
A screenshot of that graph will help
R.
R.
Who is online
Users browsing this forum: No registered users and 9 guests