diff --git a/stream-control/templates/dashboard.html b/stream-control/templates/dashboard.html index 63a5f5a..eed200f 100644 --- a/stream-control/templates/dashboard.html +++ b/stream-control/templates/dashboard.html @@ -7,6 +7,23 @@
POLICY{{ ('AUS' if not policy.get('enabled') else policy.get('mode','—')|upper) }}ab {{ policy.get('min_sessions','—') }} Streams
+{% set host=state.get('host',{}) %}{% set tc_detail=state.get('tc_detail',{}) %} +
+
OVH Uptime{{ host.get('uptime_seconds',0)|duration }}
+
Load 1/5/15{{ (host.get('load') or ['—','—','—'])|join(' / ') }}
+
RAM{{ host.get('memory_used',0)|bytes }} / {{ host.get('memory_total',0)|bytes }}
+
Root-Disk{{ host.get('disk_used',0)|bytes }} / {{ host.get('disk_total',0)|bytes }}
+
Historie{{ state.get('totals',{}).get('sessions',0) }} Sessions · {{ state.get('totals',{}).get('known_ips',0) }} IPs
+
+ +{% if state.get('sessions') %} +

LIVE

Aktive Sessions

vollständige History →
+
+ {% for s in state.get('sessions',[]) %}{% endfor %} +
BenutzerTitelGerätStandortIPSeit
{{ s.user_name }}{{ s.series or s.title }}{% if s.series %}{{ s.title }}{% endif %}{{ s.device }}{{ s.client }}{{ [s.city,s.country]|select|join(', ') }}{{ s.asn }}{{ s.ip }}{{ s.started_at|dt }}
+
+{% endif %} +

SCHNELLWAHL

Traffic-Profile

Wirkt sofort auf die aktiven tc-Klassen am OVH
{% for key,p in profiles.items() %} @@ -44,6 +61,7 @@ Markierungsregeln{{ state.get('mark_rules','—') }} Region-Netze{{ state.get('ipsets',{}).get('geo-a-v4',0)+state.get('ipsets',{}).get('geo-a-v6',0) }} Cloud-Netze{{ state.get('ipsets',{}).get('cloud-v4',0)+state.get('ipsets',{}).get('cloud-v6',0) }} + {% for key,label in [('ch','Region-Traffic'),('vpn','Cloud-Traffic'),('default','Standard-Traffic')] %}{% set c=tc_detail.get(key,{}) %}{{ label }}{{ c.get('bytes',0)|bytes }}{{ c.get('packets',0) }} Pakete · {{ c.get('drops',0) }} Drops{% endfor %}
{% for action,label,cls in [('refresh','Netzlisten aktualisieren','ghost'),('worker','Worker neu starten','ghost'),('admin','Admin neu starten','ghost')] %}
{% endfor %}