width = $width; $obj->heigth = $heigth; $obj->rrd_format = '%5.1lf%s'; switch($obj->args['type']) { case 'pg_db_size': $obj->ds_names = array( 'value' => 'Size', ); $obj->colors = array( 'value' => '0000ff', ); $obj->rrd_title = sprintf('DB Size %s', !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); $obj->rrd_vertical = 'Size'; break; case 'pg_blks': case 'pg_n_tup_c': $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); $obj->rrd_vertical = 'Ops per second'; break; } collectd_flush($obj->identifiers); $obj->rrd_graph();