', $host);
printf('', $host);
$plugins = collectd_plugins($host);
if(!$plugins) {
echo "Unknown host\n";
return false;
}
plugins_list($host, $selected_plugins);
echo '
';
plugin_header($host, $plugin);
$args = $_GET;
print '
' . "\n";
foreach($CONFIG['term'] as $key => $s) {
$args['s'] = $s;
$selected = selected_timerange($seconds, $s);
printf('- %s
'."\n",
$selected, $CONFIG['weburl'], build_url('detail.php', $args), $key);
}
print "
\n";
if ($CONFIG['graph_type'] == 'canvas') {
chdir($CONFIG['webdir']);
include $CONFIG['webdir'].'/plugin/'.$plugin.'.php';
} else {
printf('
'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
}
echo '
';
echo "\n";
html_end();
?>