From cdfe601a3b2197ba33c29eeeee91d6820955078e Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 12 Jan 2010 20:35:45 +0100 Subject: add compatibility if rrdinfo doesn't work as expected --- inc/html.inc.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/inc/html.inc.php b/inc/html.inc.php index 6ab84d9..c524e46 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -69,11 +69,25 @@ function host_summary($hosts) { foreach($hosts as $host) { collectd_flush(sprintf('%s/load/load', $host)); $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); + + # ignore if file does not exist if (!$rrd_info) continue; - printf('