', htmlentities($host));
printf('', htmlentities($host));
if (!$plugins = collectd_plugins($host)) {
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,
htmlentities($CONFIG['weburl']),
htmlentities(build_url('detail.php', $args)),
htmlentities($key));
}
print "
\n";
if ($CONFIG['graph_type'] == 'canvas') {
chdir($CONFIG['webdir']);
include $CONFIG['webdir'].'/graph.php';
} else {
printf("
\n",
htmlentities($CONFIG['weburl']),
htmlentities(build_url('graph.php', $_GET)));
}
echo '
';
echo "\n";
html_end();
?>