aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorVincent Brillault2013-12-16 22:58:27 +0100
committerPim van den Berg2014-02-10 21:51:02 +0100
commitec894090d9506ef19bf45b0eeab0cfcb83224c62 (patch)
tree5cd961fdbe94585f8ad79d01313ec8bf6d5b684a
parentPlugin/df: Add support for inode graphs (diff)
downloadapt-panopticon_cgp-ec894090d9506ef19bf45b0eeab0cfcb83224c62.zip
apt-panopticon_cgp-ec894090d9506ef19bf45b0eeab0cfcb83224c62.tar.gz
apt-panopticon_cgp-ec894090d9506ef19bf45b0eeab0cfcb83224c62.tar.bz2
apt-panopticon_cgp-ec894090d9506ef19bf45b0eeab0cfcb83224c62.tar.xz
Plugin/nut: Add support for power graphs
Diffstat (limited to '')
-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');