$hosts) { host_summary($cat, $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) { host_summary('uncategorized', $uhosts); } html_end(); ?>