%s'."\n", $host);
$plugins = collectd_plugins($host);
if(!$plugins) {
echo "Unknown host\n";
return false;
}
plugins_list($host, $selected_plugins);
echo '
';
plugin_header($host, $plugin);
$term = array(
'2hour' => 3600*2,
'8hour' => 3600*8,
'day' => 86400,
'week' => 86400*7,
'month' => 86400*31,
'quarter'=> 86400*31*3,
'year' => 86400*365,
);
$args = $_GET;
print '
' . "\n";
foreach($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";
printf('
'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
echo '
';
html_end();
?>