aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nut.php7
1 files changed, 7 insertions, 0 deletions
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']) {
39 $obj->rrd_vertical = '%'; 39 $obj->rrd_vertical = '%';
40 $obj->rrd_format = '%5.1lf'; 40 $obj->rrd_format = '%5.1lf';
41 break; 41 break;
42 case 'power':
43 $obj->data_sources = array('value');
44 $obj->ds_names = array('ups' => 'UPS');
45 $obj->rrd_title = sprintf('Power (%s)', $obj->args['pinstance']);
46 $obj->rrd_vertical = 'VA';
47 $obj->rrd_format = '%5.1lf%s';
48 break;
42 case 'temperature': 49 case 'temperature':
43 $obj->data_sources = array('value'); 50 $obj->data_sources = array('value');
44 $obj->ds_names = array('battery' => 'Battery'); 51 $obj->ds_names = array('battery' => 'Battery');