2017-01-21 19:00:26 +01:00
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<?php
|
|
|
|
$hostname = gethostname();
|
2017-04-01 00:20:13 +02:00
|
|
|
echo "<h2 align=center>Hoods: has und has-süd </h2>";
|
2017-01-21 19:00:26 +01:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="ampel">
|
2017-01-23 01:27:29 +01:00
|
|
|
<?php
|
2017-01-21 19:00:26 +01:00
|
|
|
$l2tp = shell_exec('ip l | grep -c l2tp');
|
2017-04-01 00:20:13 +02:00
|
|
|
$fastd = shell_exec('sudo /var/www/html/has-mon/sensors/fastd-routers.sh | sort | uniq | wc -l');
|
|
|
|
echo "<b>Anzahl der VPN-Router has-sued:</b><br>via l2tp: $l2tp<br>via fastd: $fastd<br><br>";
|
|
|
|
|
|
|
|
|
|
|
|
$l2tps = file_get_contents('http://5.189.166.50/l2tp_routers');
|
|
|
|
$fastds = file_get_contents('http://5.189.166.50/fastd_routers');
|
|
|
|
$l2tp = str_word_count($l2tps);
|
|
|
|
$fastd = str_word_count($fastds);
|
|
|
|
echo "<b>Anzahl der VPN-Router has:</b><br>via l2tp: $l2tp<br>via fastd: $fastd<br><br>";
|
2017-01-23 01:27:29 +01:00
|
|
|
|
|
|
|
$gwselsued = file_get_contents('http://10.50.60.22/bat0.dat');
|
|
|
|
$gwselhas = file_get_contents('http://10.50.60.22/bat2.dat');
|
|
|
|
|
|
|
|
echo "<b>Gatewayselection Hood has:</b><br>";
|
|
|
|
$gwsel_has = explode(PHP_EOL, $gwselhas);
|
|
|
|
for($i = 0; $i < count($gwsel_has); ++$i) {
|
|
|
|
echo "$gwsel_has[$i]<br>";
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<b>Gatewayselection Hood has-sued</b><br>";
|
|
|
|
$gwsel_sued = explode(PHP_EOL, $gwselsued);
|
|
|
|
for($i = 0; $i < count($gwsel_sued); ++$i) {
|
|
|
|
echo "$gwsel_sued[$i]<br>";
|
2017-01-21 19:00:26 +01:00
|
|
|
}
|
|
|
|
|
2017-01-22 21:58:13 +01:00
|
|
|
$clients = file_get_contents('http://5.189.166.50/test.html');
|
|
|
|
echo $clients;
|
2017-01-21 19:00:26 +01:00
|
|
|
?>
|
2017-01-22 21:58:13 +01:00
|
|
|
|
2017-01-21 19:00:26 +01:00
|
|
|
<hr />
|
|
|
|
</div>
|
2017-01-23 01:27:29 +01:00
|
|
|
|
2017-01-21 19:00:26 +01:00
|
|
|
<div class=mrtg>
|
2017-01-23 01:27:29 +01:00
|
|
|
|
2017-04-01 00:20:13 +02:00
|
|
|
<b>Clients in has und has-sued</b>
|
|
|
|
<img src="img/clients.png">
|
2017-01-23 01:27:29 +01:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
2017-01-21 19:00:26 +01:00
|
|
|
<H1>Durchsatz eth0</H1>
|
|
|
|
<b>GW has</b>
|
|
|
|
<img src="http://78.47.36.148/localhost_eth0-day.png">
|
|
|
|
|
|
|
|
<b>GW has1</b>
|
2017-01-23 01:27:29 +01:00
|
|
|
<img src="http://78.47.161.124/localhost_eth0-day.png">
|
2017-01-21 19:00:26 +01:00
|
|
|
|
|
|
|
<b>GW has2</b>
|
|
|
|
<img src="http://5.189.166.50/localhost_eth0-day.png">
|
|
|
|
|
2017-04-01 00:20:13 +02:00
|
|
|
<br><b>GW has3</b><br>
|
|
|
|
<img src="http://213.136.93.106/localhost_eth0-day.png">
|
|
|
|
|
2017-01-21 19:00:26 +01:00
|
|
|
<b>GW roffl</b>
|
2017-01-23 01:27:29 +01:00
|
|
|
<img src="http://5.189.142.26/localhost_eth0-day.png">
|
2017-01-21 19:00:26 +01:00
|
|
|
|
|
|
|
<b>GW rola1</b>
|
|
|
|
<img src="http://163.172.161.233/mrtg/localhost_eth0-day.png">
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div></div>
|
|
|
|
</div></div></div>
|
|
|
|
</body>
|
|
|
|
</html>
|