{% extends "base.html" %} {% block title %}Status · lanwatch{% endblock %} {% block content %}

Status

Scans

{% if has_scheduler %}
{% for j in jobs %} {% endfor %}
JobScheduleStateLast completedLast attemptNext runAction
{{ j.name }} {{ j.schedule }} {% if j.running_for is not none %}running for {{ j.running_for | duration }}{% else %}idle{% endif %} {{ (j.last_completed | local) if j.last_completed else 'never' }} {% if j.last_error %}failed{% if j.failures > 1 %} ({{ j.failures }} in a row){% endif %}
{{ j.last_error }} {% elif j.last_duration_s is not none %}ok took {{ j.last_duration_s | duration }} {% else %}not since this start{% endif %}
{% if j.running_for is not none %}-{% elif j.next_in_s < 1 %}queued{% else %}in {{ j.next_in_s | duration }}{% endif %}
Run now

Service scans (inventory, deep) run in their own lane, and so do the LLM jobs: discovery, infra and the other short jobs keep their schedule while a long scan runs. Within a lane jobs run one at a time, and “Run now” queues the job behind whatever is running in its lane.

{% else %}

This process only serves the web UI (lanwatch web). Scans are run by lanwatch run or from the command line.

{% endif %}
Scan privileges
Runs via
{% if capability.via == 'helper' %}helper {{ capability.socket }}{% else %}this process{% endif %}
{% if capability.error %}
Problem
unreachable {{ capability.error }}
{% else %}
Raw sockets
{% if capability.raw %}yes{% else %}no ARP discovery, UDP scans and DHCP/mDNS probes are skipped{% endif %}
nmap
{% if capability.nmap %}installed{% else %}missing no service inventory{% endif %}
ARP listener
{% if not config.scan.arp_watch %}disabled in config{% elif arp_frames is not none %}listening {{ arp_frames }} frames in the last round{% else %}not running (needs raw sockets and one discovery round){% endif %}
arp-scan
{% if capability.arp_scan %}installed{% else %}missing, discovery falls back to nmap{% endif %}
{% endif %}
Local LLM
{% if not config.llm.enabled %}
State
disabled in config
{% else %} {% for srv, st in llm %}
{{ "Fallback" if not loop.first else "Server" }}
{{ srv.base_url }}
Reachable
{% if st.reachable %}yes{% if st.version %} {{ srv.backend_name }} {{ st.version }}{% endif %}{% else %}no {{ st.error }}{% endif %}
Model
{{ srv.cfg.model }} {% if st.reachable %}{% if st.model_present %}present{% else %}{{ "no model loaded" if srv.cfg.backend == "koboldcpp" else "not pulled" }}{% endif %}{% endif %}
{% endfor %} {% endif %}
Decoy ports
{% if not config.decoy.enabled %}
State
disabled in config
{% elif decoys is none %}
State
only with lanwatch run
{% else %}
Listening
{% for p in decoys.listening %}{{ p | port_label }}{% if not loop.last %}, {% endif %}{% else %}none{% endfor %}
{% for p, why in decoys.skipped.items() %}
Skipped
{{ p | port_label }} {{ why }}
{% endfor %} {% endif %}
Router (SNMPv3)
{% if not router.enabled %}
State
no device under [snmp.devices] has router = true; see docs/snmp.md
{% else %} {% if not router.tool %}
Problem
snmpbulkwalk missing install the snmp package
{% endif %}
Address
{{ router.host or 'default gateway' }}
{% if router.system %}
Router
{{ router.system.name or '-' }} {{ router.system.vendor or router.system.object_id }}
Software
{{ router.system.descr | truncate(90) }}
Up
{{ router.system.uptime_s | duration }}
{% endif %}
Last read
{% if router.error %}failed {{ router.error }}{% if router.last_ok %}
last good read {{ router.last_ok | local }}{% endif %}{% elif router.last_ok %}ok {{ router.last_ok | local }} · ARP and DHCP{% else %}not yet; the infra job reads it every {{ config.schedule.infra_interval_s // 60 }} minutes{% endif %}
{% endif %} {% set others = snmp_targets | selectattr('role', 'equalto', 'device') | list %}{% if others %} {% set failing = others | selectattr('error') | list %}
Devices
{{ others | length }} more over SNMPv3{% if failing %} · {{ failing | length }} not read{% endif %} · list
{% endif %}
This instance
Version
{{ version }}
Data
{{ config.data_dir }}
Database
{{ '%.1f' | format(db_bytes / 1048576) }} MB · {{ devices_total }} devices
Networks
{{ config.network.subnets if config.network.subnets is string else config.network.subnets | join(', ') }}
{% if has_scheduler %} {% endif %} {% endblock %}