$hosts) { printf("

%s

\n", $cat); host_summary($hosts); $h = array_merge($h, $hosts); } # search for uncategorized hosts $chosts = collectd_hosts(); $uhosts = array_diff($chosts, $h); # show all uncategorized hosts if ($uhosts) { echo "

uncategorized

\n"; host_summary($uhosts); } html_end(); ?>