From 1bb10c398d1a3198a8b86517bd780b8122e2e69d Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 May 2014 11:40:46 +0200 Subject: move collectd_flush function to base class --- inc/html.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc/html.inc.php') 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) { $CONFIG['weburl'],$host, $host); if ($CONFIG['showload']) { - collectd_flush(sprintf('%s/load/load', $host)); + require_once 'type/Default.class.php'; + $load = array('h' => $host, 'p' => 'load', 't' => 'load'); + $obj = new Type_Default($CONFIG, $load); + $obj->collectd_flush(); + $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); # ignore if file does not exist -- cgit v1.1