order = array('free', 'cached', 'used'); $obj->ds_names = array( 'free' => 'Free', 'cached' => 'Cached', 'used' => 'Used', ); $obj->colors = array( 'free' => '00e000', 'cached' => '0000ff', 'used' => 'ff0000', ); $obj->rrd_title = 'Swap utilization'; $obj->rrd_vertical = 'Bytes'; break; case 'swap_io': require_once 'type/GenericIO.class.php'; $obj = new Type_GenericIO($CONFIG); $obj->order = array('out', 'in'); $obj->ds_names = array( 'out' => 'Out', 'in' => 'In', ); $obj->colors = array( 'out' => '0000ff', 'in' => '00b000', ); $obj->rrd_title = 'Swapped I/O pages'; $obj->rrd_vertical = 'Pages'; break; } $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_format = '%5.1lf%s'; collectd_flush($obj->identifiers); $obj->rrd_graph();