diff options
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r-- | inc/html.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index cbe3ad2..09da518 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | require_once 'conf/common.inc.php'; | 3 | require_once 'conf/common.inc.php'; |
4 | require_once 'inc/rrdtool.class.php'; | 4 | require_once 'inc/rrdtool.class.php'; |
5 | require_once 'inc/collectd.inc.php'; | ||
5 | 6 | ||
6 | function html_start() { | 7 | function html_start() { |
7 | global $CONFIG; | 8 | global $CONFIG; |
@@ -46,6 +47,7 @@ function host_summary($hosts) { | |||
46 | echo "<table class=\"summary\">\n"; | 47 | echo "<table class=\"summary\">\n"; |
47 | 48 | ||
48 | foreach($hosts as $host) { | 49 | foreach($hosts as $host) { |
50 | collectd_flush(sprintf('%s/load/load', $host)); | ||
49 | $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); | 51 | $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); |
50 | if (!$rrd_info) | 52 | if (!$rrd_info) |
51 | continue; | 53 | continue; |