diff options
author | Pim van den Berg | 2014-05-03 11:40:46 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 19:19:05 +0200 |
commit | 1bb10c398d1a3198a8b86517bd780b8122e2e69d (patch) | |
tree | 669ea50b9b0efe268f4bb9153459f95ccfb167b5 /inc/html.inc.php | |
parent | type: move generic functions to base class (diff) | |
download | apt-panopticon_cgp-1bb10c398d1a3198a8b86517bd780b8122e2e69d.zip apt-panopticon_cgp-1bb10c398d1a3198a8b86517bd780b8122e2e69d.tar.gz apt-panopticon_cgp-1bb10c398d1a3198a8b86517bd780b8122e2e69d.tar.bz2 apt-panopticon_cgp-1bb10c398d1a3198a8b86517bd780b8122e2e69d.tar.xz |
move collectd_flush function to base class
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r-- | inc/html.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 2bcbc3f..7f6e7c0 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
@@ -196,7 +196,11 @@ function host_summary($cat, $hosts) { | |||
196 | $CONFIG['weburl'],$host, $host); | 196 | $CONFIG['weburl'],$host, $host); |
197 | 197 | ||
198 | if ($CONFIG['showload']) { | 198 | if ($CONFIG['showload']) { |
199 | collectd_flush(sprintf('%s/load/load', $host)); | 199 | require_once 'type/Default.class.php'; |
200 | $load = array('h' => $host, 'p' => 'load', 't' => 'load'); | ||
201 | $obj = new Type_Default($CONFIG, $load); | ||
202 | $obj->collectd_flush(); | ||
203 | |||
200 | $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); | 204 | $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); |
201 | 205 | ||
202 | # ignore if file does not exist | 206 | # ignore if file does not exist |