Esempio n. 1
0
StatusMon($nmon, $lastok, $monal, $deval);
StatusSlow($slow);
?>

</td>
<td valign="top" align="center">

<h3>Incidents <?php 
echo $notlbl;
?>
 <?php 
echo $acklbl;
?>
</h3>
<?php 
StatusIncidents($loc, 1);
?>

</td>
<th width="80">

<span id="counter"><?php 
echo $refresh;
?>
</span>
<img src="img/16/exit.png" title="Stop" onClick="stop_countdown(interval);">

</th></tr></table>
</form>
<p>
Esempio n. 2
0
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<link href="inc/print.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" href="img/favicon.ico">
</head>

<body>

<table width="640"><tr class="mon1">
<td valign="top" align="center">
<p>
<?php 
$link = DbConnect($dbhost, $dbuser, $dbpass, $dbname);
list($nmon, $lastok, $monal, $deval, $slow) = TopoMon($loc);
StatusMon($nmon, $lastok, $monal, $deval);
StatusIncidents($loc);
StatusSlow($slow);
?>
</td>
<td valign="top" align="center">

<?php 
StatusIf($loc, 'bbup');
StatusIf($loc, 'bbdn');
$query = GenQuery('interfaces', 's', 'count(*),round(sum(poe)/1000)', '', '', array('poe', 'location'), array('>', 'like'), array('0', $loc), array('AND'), 'JOIN devices USING (device)');
$res = DbQuery($query, $link);
if ($res) {
    $m = DbFetchRow($res);
    if ($m[0]) {
        echo "<p><b><img src=\"img/32/batt.png\" title=\"{$m['0']} PoE IF\">{$m['1']} W</b>\n";
    }