EOT; } function html_end() { echo << EOT; } function host_summary($hosts) { global $CONFIG; $rrd = new RRDTool; echo "\n"; foreach($hosts as $host) { $rrd_info = $rrd->rrd_info($CONFIG['datadir'].'/'.$host.'/load/load.rrd'); if (!$rrd_info) continue; printf(''."\n", $CONFIG['weburl'],$host, $host, $rrd_info["ds[shortterm].last_ds"], $rrd_info["ds[midterm].last_ds"], $rrd_info["ds[longterm].last_ds"]); } echo "
%s%.2f%.2f%.2f
\n"; } function breadcrumbs() { if (isset($_GET['h'])) $path = ' - '.ucfirst($_GET['h']); if (isset($_GET['p'])) $path .= ' - '.ucfirst($_GET['p']); if (isset($_GET['pi'])) $path .= ' - '.$_GET['pi']; if (isset($_GET['t']) && isset($_GET['p']) && $_GET['t'] != $_GET['p']) $path .= ' - '.$_GET['t']; if (isset($_GET['ti'])) $path .= ' - '.$_GET['ti']; return $path; } ?>