no graphs when using selfcreated data-templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
commander
Posts: 2
Joined: Thu Oct 28, 2010 6:23 am

no graphs when using selfcreated data-templates

Post by commander »

Hi,
I'm new in Cacti. My version is 0.8.7g with pia installed.
If I use selfcreated data-templates with selfcreated rra; I get no data in my corresponding rrd.
Even if I only duplicate the standart "Interface-Traffic" to "Interface-IO" and leave all adjustments unmodified, my Graph diplays nothing and rrdtool dump shows

<!-- 2010-10-27 21:12:00 CEST / 1288206720 --> <row><v> NaN </v><v> NaN </v></row>
<!-- 2010-10-28 02:00:00 CEST / 1288224000 --> <row><v> NaN </v><v> NaN </v></row>
<!-- 2010-10-28 06:48:00 CEST / 1288241280 --> <row><v> NaN </v><v> NaN </v></row>
<!-- 2010-10-28 11:36:00 CEST / 1288258560 --> <row><v> NaN </v><v> NaN </v></row>

If I turn the Data-Template in DS back to the standart "Interface-Traffic" the grapgh is working fine and the rrd looks like

<!-- 2010-10-27 16:24:00 CEST / 1288189440 --> <row><v> 2,4735778061e+05 </v><v> 3,1880840818e+05 </v></row>
<!-- 2010-10-27 21:12:00 CEST / 1288206720 --> <row><v> 2,5373463833e+05 </v><v> 2,4491005903e+05 </v></row>
<!-- 2010-10-28 02:00:00 CEST / 1288224000 --> <row><v> 7,6506243889e+04 </v><v> 2,0510423721e+05 </v></row>
<!-- 2010-10-28 06:48:00 CEST / 1288241280 --> <row><v> 3,3881221560e+05 </v><v> 1,3833841250e+05 </v></row>
<!-- 2010-10-28 11:36:00 CEST / 1288258560 --> <row><v> 3,0613671682e+05 </v><v> 4,6186218103e+05 </v></row>

Where is my mistake?

Debug-Outputs from DS and Graph:

/usr/bin/rrdtool create \
/data/cacti/rrd/border-01_ge-000_traffic.rrd \
--step 60 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \


/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='border-01 - Traffic - ge-0/0/0' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/data/cacti/rrd/border-01_ge-000_traffic.rrd":traffic_in:AVERAGE \
DEF:b="/data/cacti/rrd/border-01_ge-000_traffic.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK
gnaggies
Posts: 9
Joined: Mon Jan 10, 2005 5:44 am
Location: Wien

Re: no graphs when using selfcreated data-templates

Post by gnaggies »

Perhaps you are polling the wrong OID. Also what is your motivation for doing your own templates? Why not stick with those that come with Cacti?
commander
Posts: 2
Joined: Thu Oct 28, 2010 6:23 am

Re: no graphs when using selfcreated data-templates

Post by commander »

My intention to have custom data-templates is, that I need datasources with different RRAs. The Built-in RRAs (in my cacti) are not practical for me, because they deliver only Average-Values and are designed for Polling-Interval of 5 Minutes. What shall I do with averages of 5 minutes...? I need Max-Values per minute over 3 Days and the Maximums within 10 minutes over 2 weeks.

If you mean OID = Output Type ID:
I have used for both data-sources (custom and built in-template) the same cacti-deliverd data-query (snmp-Interface Statistiks) of the same host device with the same host(generic snmp enabled host).
So, OID should be the same.
I think, that the Problem is the creation of datasource. I'm still confused withs cacti's workflow of creating Data-Sources and fix them to a graphs. First of all I createa device (snmp queried), then I create a graph from device with a selection of the Interface (OID?) and Graph-Type. After saving the Graph, my Data-Sorurce is AUTOMATICALLY created with the template "Interface - Statiskiks" and the Standard-Path to .rrd-File
The only thing what I can do now, is to change the template to my custom template, change the path to rrd and save. And I think here ist the mistake, because the rrd is already created with another template and changes made afterwards to an rrd has no effect.

Can anybody tell me, howto create a Datasource with my Data-Template and not change the template?

In rrdtool the way ist clear - create a rrd with some rras, feed it with data, create a Graph and connect it to the rrd.


Thanks in advance

Frank
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests