diff --git a/app/templates/audit_full_flowmap.html b/app/templates/audit_full_flowmap.html index e5e9c5b..c4ceef2 100644 --- a/app/templates/audit_full_flowmap.html +++ b/app/templates/audit_full_flowmap.html @@ -2,69 +2,262 @@ {% block title %}Carte flux{% endblock %} {% block content %} < Retour -

Carte des flux reseau

- -{% if flows %} -
-
- {{ flows|length }} flux inter-serveurs +
+

Carte des flux reseau

+
+ + +
+
+ + +
+ + + + + + + + + + + + +
+ + +
+ ---> Flux reseau + 0 serveurs + 0 flux +
+ + +{% if flows %} +
+ Tableau des flux ({{ flows|length }}) +
- - - - - - - - - + + {% for f in flows %} - - - + - {% endfor %}
DirSourceIP sourceDestinationIP destPortProcessStateNbDirSourceDestinationPortProcessState
{{ f.direction }} {{ f.source_hostname }}{{ f.source_ip }}{{ f.dest_hostname or '-' }}{{ f.dest_ip }}{{ f.dest_hostname or f.dest_ip }} {{ f.dest_port }} {{ f.process_name }} {{ f.state }}{{ f.cnt }}
-
-{% else %} -
Aucun flux. Importez des rapports JSON d'abord.
+
+ {% endif %} {% if app_map %} -

Carte applicative

-
+
+ Carte applicative ({{ app_map|length }} applis) +
{% for app_name, app in app_map.items() %}
-
- {{ app_name }} - {{ app.servers|length }} serveur(s) -
- {% if app.ports %} -
Ports: {% for p in app.ports %}{{ p }}{% if not loop.last %}, {% endif %}{% endfor %}
- {% endif %} -
- {% for s in app.servers %} -
- {{ s.hostname }} - user={{ s.user }} - {{ s.cmdline[:50] }} -
- {% endfor %} -
+ {{ app_name }} + {{ app.servers|length }} + {% if app.ports %}ports: {{ app.ports|join(', ') }}{% endif %} +
{% for s in app.servers %}{{ s.hostname }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endfor %} -
+
+ {% endif %} + + {% endblock %}