data_sources = array('value'); $obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal'); $obj->ds_names = array( 'idle' => 'Idle', 'nice' => 'Nice', 'user' => 'User', 'wait' => 'Wait-IO', 'system' => 'System', 'softirq' => 'SoftIRQ', 'interrupt' => 'IRQ', 'steal' => 'Steal', ); $obj->colors = array( 'idle' => 'e8e8e8', 'nice' => '00e000', 'user' => '0000ff', 'wait' => 'ffb000', 'system' => 'ff0000', 'softirq' => 'ff00ff', 'interrupt' => 'a000a0', 'steal' => '000000', ); $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_title = sprintf('CPU-%s usage', $obj->args['pinstance']); $obj->rrd_vertical = 'Jiffies'; $obj->rrd_format = '%5.2lf'; $obj->rrdtool_opts .= ' -u 100'; collectd_flush($obj->identifiers); $obj->rrd_graph();