Pb with All-data-sources (ALL_DATA_SOURCES_NODUPS) CDEF

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

Moderators: Developers, Moderators

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

Post by gandalf »

Given the list of related data sources

Code: Select all

DEF:a="/var/apache/htdocs/cacti/rra/router1_traffic_in_17.rrd":traffic_in:AVERAGE \
DEF:b="/var/apache/htdocs/cacti/rra/router1_traffic_in_196.rrd":traffic_in:AVERAGE \
DEF:c="/var/apache/htdocs/cacti/rra/router2_traffic_in_164.rrd":traffic_in:AVERAGE \
DEF:d="/var/apache/htdocs/cacti/rra/router2_traffic_in_166.rrd":traffic_in:AVERAGE \
DEF:e="/var/apache/htdocs/cacti/rra/router3_traffic_in_192.rrd":traffic_in:AVERAGE \
DEF:f="/var/apache/htdocs/cacti/rra/router4_traffic_in_161.rrd":traffic_in:AVERAGE \
DEF:g="/var/apache/htdocs/cacti/rra/router4_traffic_in_161.rrd":traffic_in:LAST \
DEF:h="/var/apache/htdocs/cacti/rra/router1_traffic_in_17.rrd":traffic_out:AVERAGE \
DEF:i="/var/apache/htdocs/cacti/rra/router1_traffic_in_196.rrd":traffic_out:AVERAGE \
DEF:j="/var/apache/htdocs/cacti/rra/router2_traffic_in_164.rrd":traffic_out:AVERAGE \
DEF:ba="/var/apache/htdocs/cacti/rra/router2_traffic_in_166.rrd":traffic_out:AVERAGE \
DEF:bb="/var/apache/htdocs/cacti/rra/router3_traffic_in_192.rrd":traffic_out:AVERAGE \
DEF:bc="/var/apache/htdocs/cacti/rra/router4_traffic_in_161.rrd":traffic_out:AVERAGE \
DEF:bd="/var/apache/htdocs/cacti/rra/router4_traffic_in_161.rrd":traffic_out:LAST \ 
this is all correct. DEF:bd="/var/apache/htdocs/cacti/rra/router4_traffic_in_161.rrd":traffic_out:LAST is the only data source using/defining the LAST consolidation function. So the sum of all LAST consoldiation functions is in fact only this single one.
Please verigy "rrdtool info" for all rrd files used in this graph and post the defined CFs
Reinhard
amadues
Posts: 2
Joined: Fri Feb 22, 2008 11:28 am

Post by amadues »

Thanks for pointing me in the right direction. The problem is now resolved.

There were two issues:

1) one of the RRD files did not have an LAST CF defined, this was corrected.
2) as stated, only one RRD had a LAST definition on this graph. It seems in cacti 0.87b LAST must be defined for every RRD file included in the LAST ALL_DATA_SOURCES_NODUP summation. This was not the case 0.86, as long as some CF was defined for each RRD, the total of another CF could be computed without that CF being explicitly defined for each RRD.

To overcome this I created a COMMENT for each data source with a CF of LAST and a blank text value, so that LAST is defined for all data sources but not included in the graph or legend - I have no interest the LAST CF for individual RRDs except to include it in the summation which is printed on the legend.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest