', htmlentities($host));
printf('', htmlentities($host));
echo <<
EOT;
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();