width = $width; $obj->heigth = $heigth; $obj->rrd_format = '%5.1lf%s'; switch($obj->args['pinstance']) { case 'default-backend': $obj->rrd_title = 'backend'; $obj->rrd_vertical = 'hits'; break; case 'default-cache': $obj->rrd_title = 'cache'; $obj->rrd_vertical = 'hits'; break; case 'default-connections': $obj->rrd_title = 'connections'; $obj->rrd_vertical = 'hits'; break; } collectd_flush($obj->identifiers); $obj->rrd_graph();