ds_names = array( 'value' => 'Value', ); $obj->width = $width; $obj->heigth = $heigth; switch($obj->args['type']) { case 'fanspeed': $obj->rrd_title = sprintf('Fanspeed (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'RPM'; $obj->rrd_format = '%5.1lf'; break; case 'temperature': $obj->rrd_title = sprintf('Temperature (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Celsius'; $obj->rrd_format = '%5.1lf%s'; break; case 'voltage': $obj->rrd_title = sprintf('Voltage (%s)', $obj->args['pinstance']); $obj->rrd_vertical = 'Volt'; $obj->rrd_format = '%5.1lf'; break; } collectd_flush($obj->identifiers); $obj->rrd_graph();