data_sources = array('value'); $obj->ds_names = array( 'value' => 'Entropy bits', ); $obj->colors = array( 'value' => '0000f0', ); $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_title = 'Available entropy'; $obj->rrd_vertical = 'Bits'; $obj->rrd_format = '%4.0lf'; # backwards compatibility if ($CONFIG['version'] < 5) { $obj->data_sources = array('entropy'); $obj->ds_names['entropy'] = $obj->ds_names['value']; unset($obj->ds_names['value']); $obj->colors['entropy'] = $obj->colors['value']; unset($obj->colors['value']); } collectd_flush($obj->identifiers); $obj->rrd_graph();