From 41a8b01c6dfb5e5660a7d0029338777d01019feb Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 22 Jun 2013 12:55:06 +0200 Subject: overview: add color to load averages The load average number turns: * orange When the load is higher than the number of cpu cores. * red When the load is more than twice as high as the number of cpu cores. --- inc/html.inc.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index 0a33da5..015225e 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -173,6 +173,8 @@ function host_summary($cat, $hosts) { foreach($hosts as $host) { $host_counter++; + $cores = count(group_plugindata(collectd_plugindata($host, 'cpu'))); + printf('