$type)); $obj = new Type_Default; $obj->datadir = $CONFIG['datadir']; $obj->args = array( 'host' => $host, 'plugin' => $plugin, 'pinstance' => $pinstance, 'type' => $type, 'tinstance' => $tinstance, ); $obj->data_sources = array('value'); $obj->ds_names = array( 'value' => 'Value ', ); $obj->width = $width; $obj->heigth = $heigth; $obj->seconds = $seconds; switch($type) { case 'fanspeed': $obj->colors = '00ff00'; $obj->rrd_title = "Fanspeed ($pinstance) on $host"; $obj->rrd_vertical = 'RPM'; $obj->rrd_format = '%5.1lf'; break; case 'temperature': $obj->colors = '0000ff'; $obj->rrd_title = "Temperature ($pinstance) on $host"; $obj->rrd_vertical = 'Celius'; $obj->rrd_format = '%5.1lf%s'; break; case 'voltage': $obj->colors = 'ff0000'; $obj->rrd_title = "Voltage ($pinstance) on $host"; $obj->rrd_vertical = 'Volt'; $obj->rrd_format = '%5.1lf'; break; } $obj->rrd_graph(); ?>