%s'."\n", $host);
$plugins = collectd_plugins($host);
if(!$plugins) {
echo "Unknown host\n";
return false;
}
# first the ones defined in overview
foreach($CONFIG['overview'] as $plugin) {
if (in_array($plugin, $plugins)) {
printf('
'."\n", $plugin);
plugin_header($host, $plugin, 0);
graphs_from_plugin($host, $plugin);
print "
\n";
}
}
# other plugins
foreach($plugins as $plugin) {
if (!in_array($plugin, $CONFIG['overview'])) {
printf(''."\n", $plugin);
if ($splugin == $plugin) {
plugin_header($host, $plugin, 0);
graphs_from_plugin($host, $plugin);
} else {
plugin_header($host, $plugin, 1);
}
print "
\n";
}
}
html_end();
?>