The write_root_summary function calls write_data_to_rrd, passing in
metric->slope for the slope parameter. However, metric->slope is a
string offset into the strings buffer and not a valid ganglia_slope_t
value. This results in an incorrectly constructed RRD, and many
warning messages emitted for every subsequent update.
The fix is to use cstr_to_slope() to translate the slope string into
a proper ganglia_slope_t value.
The write_root_summary function calls write_data_to_rrd, passing in metric->slope for the slope parameter. However, metric->slope is a string offset into the strings buffer and not a valid ganglia_slope_t value. This results in an incorrectly constructed RRD, and many warning messages emitted for every subsequent update.
The fix is to use cstr_to_slope() to translate the slope string into a proper ganglia_slope_t value.