aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 11:40:46 +0200
committerPim van den Berg2014-05-03 19:19:05 +0200
commit1bb10c398d1a3198a8b86517bd780b8122e2e69d (patch)
tree669ea50b9b0efe268f4bb9153459f95ccfb167b5 /inc/html.inc.php
parenttype: move generic functions to base class (diff)
downloadapt-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.php6
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