Only AVERAGE working

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

Moderators: Developers, Moderators

Post Reply
Pler

Only AVERAGE working

Post by Pler »

I have data gathered via snmp from a NAS device. I can only make graphs if the consolidation function for the graph item is AVERAGE. If it is something else (I would like it to be LAST) I get an error message:

"ERROR: can't make graph without contents"

What is wrong?

I would like to have some other consolidation function than AVERAGE because I am fetching disk space usage from the NAS, so I dont want average but the real number.
Guest

Post by Guest »

create a CDEF where it multiples by 1 in order to get the real #
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

You can only do what you are trying to do if you are using a GPRINT. You cannot graph LAST data in the sense of a LINE/AREA/STACK. You could however graph MAX/MIN data as well (assuming both the Round Robin Archive and Data Source(s) were setup to use those CF's).

-Ian
Oldtimer

The RRAs _are_ setup for MAX...

Post by Oldtimer »

I can confirm this, at least for 0.6.8.

Using the default RRA specs, I created a data source for Ethernet traffic on an interface:

Code: Select all

/usr/local/rrdtool/bin/rrdtool create \
/home/groups/home/web/cacti/rra/eth0.rrd \
--step 300 \
DS:bytesin:GAUGE:600:0:1 \
DS:bytesout:GAUGE:600:0:1 \
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 \
What happens (and what Pler described) is that, even though the RRAs are defined for MAX, Cacti (for whatever reason, since I have not yet read through the code) does not allow us to create graphs with all graph items set to use MAX as their consolidation function.

However, I can create a graph with an item set to AVERAGE (default) cf and then add any number of items with their cf set to MAX. To get around this, I created a dummy data source (0) and now have pristine MAX graphics of ethernet traffic, with an invisible AVERAGE source on top. :)

(And, using the command line, I can generate graphs with all items' cfs set to MAX from Cacti's RRD files, therefore confirming that both AVERGE and MAX are defined for all RRAs, and that Cacti should be able to do this. I've done it myself on a couple of occasions.)

This points to some sort of bug in the UI, IMHO.

I'll try figuring it out, but I haven't really looked under the hood yet, so there's no assurance I'll find a solution at all.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests