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

Aktuelle default Route table fff:

"; $l2tp = shell_exec('ip l | grep -c l2tp'); echo "Anzahl der l2tp Tunnel: $l2tp

"; $gwsel = shell_exec('sudo batctl gw'); echo "Gateway-selection:
"; echo "$gwsel

"; echo "Die anderen GW in der Hood
"; $other = shell_exec('sudo batctl gwl | grep MBit | tr -s " " | cut -f 2,3,8 -d" "'); $othergw = explode(PHP_EOL, $other); for($i = 0; $i < count($othergw); ++$i) { echo "$othergw[$i]
"; } $clients = file_get_contents('http://5.189.166.50/test.html'); echo $clients; ?>

Durchsatz eth0

GW has GW has1 GW has2 GW has3 GW roffl GW rola1
Speedtest der has und has-sued GWs (Kabel, wr-841, l2tp)