aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
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