$hosts) { printf("

%s

\n", $cat); host_summary($hosts); $h = array_merge($h, $hosts); } } # search for uncategorized hosts if(!$chosts = collectd_hosts()) printf('

Error: No Collectd hosts found in %s

', $CONFIG['datadir']); $uhosts = array_diff($chosts, $h); # show all uncategorized hosts if ($uhosts) { echo "

uncategorized

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