datadir = $CONFIG['datadir']; $obj->path_format = '{host}/{plugin}/{type}-{tinstance}.rrd'; $obj->args = array( 'host' => $host, 'plugin' => $plugin, 'pinstance' => $pinstance, 'type' => $type, 'tinstance' => $tinstance, ); $obj->data_sources = array('value'); $obj->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->width = $width; $obj->heigth = $heigth; $obj->seconds = $seconds; $obj->rrd_title = "Swap utilization on $host"; $obj->rrd_vertical = 'Bytes'; $obj->rrd_format = '%5.1lf%s'; $obj->rrd_graph(); ?>