%s'."\n",
$CONFIG['weburl'].'host.php?h='.htmlentities($host), $host
);
$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;
printf('- %s
'."\n",
$CONFIG['weburl'], build_url('detail.php', $args), $key);
}
print "
\n";
$plugins = collectd_plugins($host);
if(!$plugins) {
echo "Unknown host\n";
return false;
}
# show graph
printf(''."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
html_end();
?>