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.
Only AVERAGE working
Moderators: Developers, Moderators
The RRAs _are_ setup for MAX...
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:
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.
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 \
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.
Who is online
Users browsing this forum: No registered users and 1 guest