From ec894090d9506ef19bf45b0eeab0cfcb83224c62 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Mon, 16 Dec 2013 22:58:27 +0100 Subject: Plugin/nut: Add support for power graphs --- plugin/nut.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin') diff --git a/plugin/nut.php b/plugin/nut.php index 7f0568d..848b09b 100644 --- a/plugin/nut.php +++ b/plugin/nut.php @@ -39,6 +39,13 @@ switch($obj->args['type']) { $obj->rrd_vertical = '%'; $obj->rrd_format = '%5.1lf'; break; + case 'power': + $obj->data_sources = array('value'); + $obj->ds_names = array('ups' => 'UPS'); + $obj->rrd_title = sprintf('Power (%s)', $obj->args['pinstance']); + $obj->rrd_vertical = 'VA'; + $obj->rrd_format = '%5.1lf%s'; + break; case 'temperature': $obj->data_sources = array('value'); $obj->ds_names = array('battery' => 'Battery'); -- cgit v1.1