Gateway-Status

Monitoring der Obernkirchener Gateways

Die Daten eurer Freifunk-Router werden über verschiedene Gateways ins Internet geroutet. Auch Freifunk-Obernkirchen stellt ein solches Gateway bereit. Damit leisten wir unseren Beitrag zum Ausbau des Netzes. Ein Teil der Daten des Gateways, wie z.B. Status der VPN-Verbindung, Netzwerkverkehr und z.Zt. genutze VPN-Exit werden hier aufbereitet und als Grafiken dargestellt.

[insert_PHP]

/*
Monitoring des Obernkirchener-Gateways
(c) 2015 Holger Heumann
*/
echo “

\n”;
$ip=trim(file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/IP.txt”));
$c=array(“SE”=>”Schweden”,”CZ”=>”Tschechien”,”NL”=>”Niederlande”,”RO”=>”Rumänien”,”CH”=>”Schweiz”);
$country = geoip_country_code_by_name($ip);
if (($country) AND array_key_exists($country,$c)) {
$vpn=” über “.$c[$country] . ”  “;
}
echo “

\n”;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

\n”;
echo “

“;
echo “

\n”;
echo “

\n”;
echo “

Ethernet gesamt – vpn1.freifunk-obernkirchen.de
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_hourly_eth0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"hourly_eth0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_daily_eth0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"daily_eth0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_monthly_eth0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"monthly_eth0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_summary_eth0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"summary_eth0\"
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_top10_eth0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"top10_eth0\"\n”;
echo “

\n”;

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

\n”;
echo “

“;
echo “

\n”;
echo “

\n”;
echo “

B.A.T.M.A.N – vpn1.freifunk-obernkirchen.de
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_hourly_bat0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"hourly_bat0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_daily_bat0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"daily_bat0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_monthly_bat0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"monthly_bat0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_summary_bat0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"summary_bat0\"
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_top10_bat0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"top10_bat0\"\n”;
echo “

\n”;

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

\n”;
echo “

“;
echo “

\n”;
echo “

\n”;
echo “

VPN-Exit – vpn1.freifunk-obernkirchen.de
“.$vpn.”
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_hourly_tun0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"hourly_tun0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_daily_tun0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"daily_tun0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_monthly_tun0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"monthly_tun0\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_summary_tun0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"summary_tun0\"
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_top10_tun0.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"top10_tun0\"\n”;
echo “

\n”;

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

\n”;
echo “

“;
echo “

\n”;
echo “

\n”;
echo “

Freifunk-VPN – vpn1.freifunk-obernkirchen.de
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_hourly_fastd_mesh.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"hourly_fastd_mesh\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_daily_fastd_mesh.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"daily_fastd_mesh\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_monthly_fastd_mesh.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"monthly_fastd_mesh\"
“;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_summary_fastd_mesh.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"summary_fastd_mesh\"
\n”;
$contents=file_get_contents(“http://monitor.freifunk-obernkirchen.de/vnstat/vnstat_top10_fastd_mesh.png”);
$src = “data:image/gif;base64,” . base64_encode($contents );
echo “\"top10_fastd_mesh\"\n”;
echo “

\n”;

[/insert_PHP]