diff options
author | Manuel CISSÉ | 2010-06-21 13:49:36 +0200 |
---|---|---|
committer | Pim van den Berg | 2010-06-22 20:13:57 +0200 |
commit | 5f6b7410cb711fa6226f976e65aebd42049965f8 (patch) | |
tree | ac9ec3fd9ade81c0cb93dfba5f5d3fec58ced9db /plugin | |
parent | remove php gd dependency (diff) | |
download | apt-panopticon_cgp-5f6b7410cb711fa6226f976e65aebd42049965f8.zip apt-panopticon_cgp-5f6b7410cb711fa6226f976e65aebd42049965f8.tar.gz apt-panopticon_cgp-5f6b7410cb711fa6226f976e65aebd42049965f8.tar.bz2 apt-panopticon_cgp-5f6b7410cb711fa6226f976e65aebd42049965f8.tar.xz |
Uptime plugin now display current/max/avg values in days instead of seconds
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/uptime.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/uptime.php b/plugin/uptime.php index 4c7db39..0d3d617 100644 --- a/plugin/uptime.php +++ b/plugin/uptime.php | |||
@@ -3,24 +3,24 @@ | |||
3 | # Collectd Uptime plugin | 3 | # Collectd Uptime plugin |
4 | 4 | ||
5 | require_once 'conf/common.inc.php'; | 5 | require_once 'conf/common.inc.php'; |
6 | require_once 'type/GenericStacked.class.php'; | 6 | require_once 'type/Uptime.class.php'; |
7 | require_once 'inc/collectd.inc.php'; | 7 | require_once 'inc/collectd.inc.php'; |
8 | 8 | ||
9 | ## LAYOUT | 9 | ## LAYOUT |
10 | # uptime/uptime.rrd | 10 | # uptime/uptime.rrd |
11 | 11 | ||
12 | $obj = new Type_GenericStacked($CONFIG); | 12 | $obj = new Type_Uptime($CONFIG); |
13 | $obj->data_sources = array('value'); | 13 | $obj->data_sources = array('value'); |
14 | $obj->ds_names = array( | 14 | $obj->ds_names = array( |
15 | 'value' => 'seconds', | 15 | 'value' => 'Current', |
16 | ); | 16 | ); |
17 | $obj->colors = array( | 17 | $obj->colors = array( |
18 | 'value' => '0000f0', | 18 | 'value' => '00e000', |
19 | ); | 19 | ); |
20 | $obj->width = $width; | 20 | $obj->width = $width; |
21 | $obj->heigth = $heigth; | 21 | $obj->heigth = $heigth; |
22 | $obj->rrd_title = 'Uptime'; | 22 | $obj->rrd_title = 'Uptime'; |
23 | $obj->rrd_vertical = 'Seconds'; | 23 | $obj->rrd_vertical = 'Days'; |
24 | $obj->rrd_format = '%.1lf'; | 24 | $obj->rrd_format = '%.1lf'; |
25 | 25 | ||
26 | collectd_flush($obj->identifiers); | 26 | collectd_flush($obj->identifiers); |