FFF Gateway $hostname"; echo "

Hoods: has und has-süd"; ?>

"; $load = shell_exec('cat /proc/loadavg'); $load = explode(" ", $load); $load[0] > 2? $ampel = 'ampelgelb.jpg' : $ampel = 'ampelgr.jpg'; $load[0] > 3? $ampel = 'ampelrot.jpg' : ""; echo ""; $leases = shell_exec('dhcp-lease-list --parsable | wc -l'); $leases < 3? $ampel = 'ampelgelb.jpg' : $ampel = 'ampelgr.jpg'; $leases > 120? $ampel = 'ampelrot.jpg': ""; echo ""; ?>
Status
Uptime:$uptime
Load:$load[0] $load[1] $load[2]
DHCP:Leases in use: $leases

Anzahl der l2tp Tunnel
has-sued: $l2tp

"; $gwselsued = file_get_contents('http://10.50.60.22/bat0.dat'); $gwselhas = file_get_contents('http://10.50.60.22/bat2.dat'); echo "Gatewayselection Hood has:
"; $gwsel_has = explode(PHP_EOL, $gwselhas); for($i = 0; $i < count($gwsel_has); ++$i) { echo "$gwsel_has[$i]
"; } echo "Gatewayselection Hood has-sued
"; $gwsel_sued = explode(PHP_EOL, $gwselsued); for($i = 0; $i < count($gwsel_sued); ++$i) { echo "$gwsel_sued[$i]
"; } $clients = file_get_contents('http://5.189.166.50/test.html'); echo $clients; ?>
Speedtest der has und has-sued GWs (Kabel, wr-841, l2tp)

Durchsatz eth0

GW has GW has1 GW has2
GW has3 - kein mrtg
GW roffl GW rola1