{% extends "base.html" %} {% block content %} {% from 'include/input_macros.html' import input, checkbox, select %} {% if serv %} {% endif %} {% if user_status == 0 %} {% include 'include/no_sub.html' %} {% else %} {% if history %} {% include 'include/port_scan_history.html' %} {% elif port_scanner_stderr != '' %}

You have not installed Port scanner service. Read here how to install Port scanner service

{% else %}
{% if servers|length == 0 %} {% include 'include/getstarted.html' %} {% endif %} {% for s in servers %}
{% for p in port_scanner_settings %} {% if port_scanner_settings|length > 0 %} {% if p.server_id == s.0 and p.enabled == 1 %} {% if port_scanner == 'active' %} {% else %} {% endif %} {% elif p.server_id == s.0 and p.enabled == 0 %} {% endif %} {% else %} {% endif %} {% endfor %} {% if s.0 not in port_scanner_settings|map(attribute='server_id') %} {% endif %} {% if not serv %} {{s.1}} {% else %} {{s.1}} {% endif %} {% if role <= 2 %} {% endif %}
{{s.11}}
IP: {{s.2}}
Last scan: {% if count_ports is defined %} {% for c in count_ports %} {% if c.0 == s.2 %} {{c.1.0.1}} {% endif %} {% endfor %} {% endif %}
Total opened ports: {% if count_ports is defined %} {% for c in count_ports %} {% if c.0 == s.2 %} {{c.1.0.0}} {% endif %} {% endfor %} {% endif %}
{% endfor %}
Read about Port scanner service in this article
{% endif %} {% endif %} {% endblock %}