Beispiel #1
0
					if( array_key_exists($ifip,$vrf[$in]) ){echo "<a href=\"Topology-Networks.php?in[]=vrfname&op[]==&st[]=".urlencode($vrf[$in][$ifip])."\">".$vrf[$in][$ifip]."</a>\n";}
				}
			}
			echo "</td></tr>\n";
			}
	}
	?>
</table>
<table class="content" >
<tr class="<?= $modgroup[$self] ?>2"><td><?= $row ?>/<?= count( array_keys($ifn) ) ?> Interfaces<?= ($tpow)?", ${tpow}W $totlbl PoE":"" ?></td></tr>
</table>
	<?php
}

if($stat){
	include_once ("inc/librep.php");
?>
<h2>
<a href="Monitoring-Events.php?in[]=source&op[]==&st[]=<?= $ud ?>"><img src="img/16/bell.png" title="<?= $msglbl ?>"></a>
<?= $mlvl[150] ?> <?= $laslbl ?></h2>
<?php
	Events($_SESSION['lim'],array('level','source'),array('>=','='),array(150,$dev[0]),array('AND') );

	MonLatency("device","=",$dev[0],1,0);
	IncGroup("device","=",$dev[0],$_SESSION['lim'],0);
	MonAvail("device","=",$dev[0],1,0);
}
}
include_once ("inc/footer.php");
?>
</th></tr></table></form><p>
<?php 
}
if ($map and !isset($_GET['xls']) and file_exists("map/map_{$_SESSION['user']}.php")) {
    echo "<center><h2>{$netlbl} Map</h2>\n";
    echo "<img src=\"map/map_{$_SESSION['user']}.php\" style=\"border:1px solid black\"></center><p>\n";
}
if ($rep) {
    Condition($in, $op, $st, $co);
    $link = DbConnect($dbhost, $dbuser, $dbpass, $dbname);
    if (in_array("mav", $rep)) {
        MonAvail($in[0], $op[0], $st[0], $lim, $ord);
    }
    if (in_array("lat", $rep)) {
        MonLatency($in[0], $op[0], $st[0], $lim, $ord);
    }
    if (in_array("upt", $rep)) {
        MonUptime($in[0], $op[0], $st[0], $lim, $ord);
    }
    if (in_array("evt", $rep)) {
        MonEvent($in[0], $op[0], $st[0], $lim, $ord, $opt);
    }
    if (in_array("igr", $rep)) {
        IncGroup($in[0], $op[0], $st[0], $lim, $ord);
    }
    if (in_array("idi", $rep)) {
        IncDist($in[0], $op[0], $st[0], $lim, $ord);
    }
    if (in_array("ack", $rep)) {
        IncAck($in[0], $op[0], $st[0], $lim, $ord);