Upgrade from 8.7a to 8.7b produces funky problems

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

Moderators: Developers, Moderators

Post Reply
khakhovich
Posts: 7
Joined: Thu Sep 18, 2008 7:24 am

Upgrade from 8.7a to 8.7b produces funky problems

Post by khakhovich »

Hey guys,
need some help. i have upgraded to version 8.7b from 8.7a which seem to be a very easy process a few months back.
everything is working as expected with one little annoying exception.

NONE of the new graphs that i am trying to create for new devices are working :)

even the simpliest one like Ethernet port traffic.

they all complain with the following:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="www 1 - Traffic - eth0" \
--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="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_in:LAST \
DEF:c="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_in:MAX \
DEF:d="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_out:AVERAGE \
DEF:e="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_out:LAST \
DEF:f="/var/www/sys/cactus/rra/www_1_traffic_in_427.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefd=c,8,* \
CDEF:cdefe=d,8,* \
CDEF:cdeff=e,8,* \
CDEF:cdefh=f,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF


if i look with this
rrdtool fetch www_1_traffic_in_427.rrd AVERAGE
ERROR: the RRD does not contain an RRA matching the chosen CF


so did someting changed from 8.7a to 8.7b that broke the AVERAGE function ?


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

Post by gandalf »

No, it's the other way round. Cacti tries to determine the correct CF to be used. If it does not find a meaningful match, it guesses: AVERAGE. In most cases, rrd files do hold this CF. Yours seem to NOT inlcude this CF. That will cause such a problem.
Reinhard
khakhovich
Posts: 7
Joined: Thu Sep 18, 2008 7:24 am

Post by khakhovich »

so my problem with my rrdtool installation ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I do not suppose so.
Please post the result of "rrdtool info" against your rrd file.
How did you create this file? Vie "Create Graphs for this Host"?
Reinhard
khakhovich
Posts: 7
Joined: Thu Sep 18, 2008 7:24 am

Post by khakhovich »

here is the rrdtool info:

[root@server1 rra]# rrdtool info www_1_traffic_in_429.rrd
filename = "www_1_traffic_in_429.rrd"
rrd_version = "0003"
step = 300
last_update = 1222841943
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+09
ds[traffic_in].last_ds = "1774024564"
ds[traffic_in].value = 9.7280732700e+06
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+09
ds[traffic_out].last_ds = "540659766"
ds[traffic_out].value = 4.9314784500e+06
ds[traffic_out].unknown_sec = 0
rra[0].cf = "MAX"
rra[0].rows = 600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "MAX"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 8.3465350433e+04
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 6.4008119300e+04
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "MAX"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 8.3465350433e+04
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 6.4008119300e+04
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "MAX"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 5.1251039706e+05
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 6.2291147863e+05
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "LAST"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "LAST"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 8.3465350433e+04
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 6.4008119300e+04
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "LAST"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 8.3465350433e+04
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 6.4008119300e+04
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "LAST"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 8.3465350433e+04
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 6.4008119300e+04
rra[7].cdp_prep[1].unknown_datapoints = 0
[root@server1 rra]#



and yes i have used a normal method of adding graphs, just as i do always.
using "Create Graphs for this Host"
User avatar
TheWitness
Developer
Posts: 17053
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is a bug in 0.8.7b with a change to kind of futaly help others. When Reinhard get's back from vacation, we will have to look at this to determine how to fix it. Keep your eye's posted. We may have to fix it in 0.8.7c beta2. Beta1 is too close to release.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
khakhovich
Posts: 7
Joined: Thu Sep 18, 2008 7:24 am

Post by khakhovich »

Thank you guys. this drove me nuts for a while.... i thought i was going crazy:)

will be waiting for the fix.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests