From 3f694cb04f5351a40140e4fc9a35909f65321baf Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 10 Mar 2011 20:20:11 +0100 Subject: plugin/postgresql: create fallback for unknown types --- plugin/postgresql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/postgresql.php b/plugin/postgresql.php index 596f590..9680a4f 100644 --- a/plugin/postgresql.php +++ b/plugin/postgresql.php @@ -38,8 +38,7 @@ switch($obj->args['type']) { !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); $obj->rrd_vertical = 'Size'; break; - case 'pg_blks': - case 'pg_n_tup_c': + default: $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); $obj->rrd_vertical = 'Ops per second'; break; -- cgit v1.1