1
0
mirror of https://github.com/moexe/FFFGateway-Monitoring.git synced 2026-02-05 22:55:11 +01:00

* Speedtest raus genommen

* Anzahl der Clients in has und has-sued als Gnuplot
!!!! gnuplot installieren !!!!

* Anzahl und Auflisten der fastd und l2tp Router
This commit is contained in:
Robert Langhammer
2017-04-01 00:20:13 +02:00
parent d9e44279d9
commit 88a1f885c0
16 changed files with 602 additions and 12 deletions

View File

@@ -185,8 +185,14 @@
</ul></li>
<li><a href="#">Router via l2tp</a>
<ul>
<li><a href="routers.php">has-sued</a></li>
<li><a href="#">has (geht noch net)</a></li>
<li><a href="routers-l2tp.php">has-sued</a></li>
<li><a href="routers-l2tp-has.php">has</a></li>
</ul></li>
<li><a href="#">Router via fastd</a>
<ul>
<li><a href="routers-fastd.php">has-sued</a></li>
<li><a href="routers-fastd-has.php">has</a></li>
</ul></li>
</ul>
</nav>

View File

@@ -0,0 +1,19 @@
<div id="content">
<H2>Router via fastd in der has-hood</H2>
<?php
$routers = file_get_contents('http://5.189.166.50/fastd_routers');
$router = explode(PHP_EOL, $routers);
for($i = 0; $i < count($router); ++$i) {
echo "<a href=\"https://monitoring.freifunk-franken.de/routers?q=^$router[$i]\$\">$router[$i]</a><br>";
}
--$i;
echo "<br>fastd Router has-sued: $i"
?>
</div>
</div></div>
</div></div></div>
</body>
</html>

19
html/routers-fastd.html Normal file
View File

@@ -0,0 +1,19 @@
<div id="content">
<H2>Router via fastd in der has-sued</H2>
<?php
$routers = shell_exec('sudo /var/www/html/has-mon/sensors/fastd-routers.sh');
$router = explode(PHP_EOL, $routers);
for($i = 0; $i < count($router); ++$i) {
echo "<a href=\"https://monitoring.freifunk-franken.de/routers?q=^$router[$i]\$\">$router[$i]</a><br>";
}
--$i;
echo "<br>fastd Router has-sued: $i"
?>
</div>
</div></div>
</div></div></div>
</body>
</html>

View File

@@ -0,0 +1,19 @@
<div id="content">
<H2>Router via l2tp in der has-hood</H2>
<?php
$routers = file_get_contents('http://5.189.166.50/l2tp_routers');
$router = explode(PHP_EOL, $routers);
for($i = 0; $i < count($router); ++$i) {
echo "<a href=\"https://monitoring.freifunk-franken.de/routers?q=^$router[$i]\$\">$router[$i]</a><br>";
}
--$i;
echo "<br>l2tp Router has-sued: $i"
?>
</div>
</div></div>
</div></div></div>
</body>
</html>

View File

@@ -1,5 +1,5 @@
<div id="content">
<H1>Router via l2tp in der has-sued</H1>
<H2>Router via l2tp in der has-sued</H2>
<?php
$routers = shell_exec('sudo -n /var/www/html/has-mon/sensors/l2tp-routers.sh');

View File

@@ -2,14 +2,21 @@
<div id="content">
<?php
$hostname = gethostname();
echo "<h1 align=center>FFF Gateway $hostname</h1>";
echo "<p align=center>Hoods: has und has-süd";
echo "<h2 align=center>Hoods: has und has-süd </h2>";
?>
<div class="ampel">
<?php
$l2tp = shell_exec('ip l | grep -c l2tp');
echo "<b>Anzahl der l2tp Tunnel</b><br>has-sued: <b>$l2tp</b><br><br>";
$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>";
$gwselsued = file_get_contents('http://10.50.60.22/bat0.dat');
$gwselhas = file_get_contents('http://10.50.60.22/bat2.dat');
@@ -35,8 +42,8 @@ echo $clients;
<div class=mrtg>
<b>Speedtest has und has-sued (Kabel, wr-841, l2tp)</b>
<img src="http://163.172.161.233/top/img/speed.png">
<b>Clients in has und has-sued</b>
<img src="img/clients.png">
<hr />
@@ -50,8 +57,9 @@ echo $clients;
<b>GW has2</b>
<img src="http://5.189.166.50/localhost_eth0-day.png">
<br><b>GW has3 - kein mrtg</b><br>
<br><b>GW has3</b><br>
<img src="http://213.136.93.106/localhost_eth0-day.png">
<b>GW roffl</b>
<img src="http://5.189.142.26/localhost_eth0-day.png">