diff options
author | Vincent Brillault | 2013-12-16 22:58:27 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-02-10 21:51:02 +0100 |
commit | ec894090d9506ef19bf45b0eeab0cfcb83224c62 (patch) | |
tree | 5cd961fdbe94585f8ad79d01313ec8bf6d5b684a /plugin/nut.php | |
parent | Plugin/df: Add support for inode graphs (diff) | |
download | apt-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 'plugin/nut.php')
-rw-r--r-- | plugin/nut.php | 7 |
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'); |