{% extends "base.html" %} {% block title %}Admin — Server Monitoring{% endblock %} {% block page_title %}Admin & Maintenance{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Current Database & Inventory State
{{ stats.get('devices', '?') }}
Devices
{{ stats.get('logs', '?') }}
Log Entries
{{ stats.get('templates', '?') }}
Msg Templates
{{ stats.get('wmt_requests', '?') }}
WMT Requests
{{ stats.get('inventory_hosts', '?') }}
Inventory Hosts
{{ stats.get('inventory_groups_yaml', '?') }}
Inventory Groups
Clear Log Entries

Deletes all log entries from the database. Devices remain intact — they will start logging again automatically.

Currently {{ stats.get('logs', '?') }} log entries.
Clear Device Database

Deletes all devices and their associated log entries from the database. Devices will re-register automatically when they next check in.

Currently {{ stats.get('devices', '?') }} devices and {{ stats.get('logs', '?') }} log entries.
Clear Ansible Inventory

Resets the Ansible inventory file and clears all inventory groups. The file is left fully empty — ready for new hosts and groups.

Currently {{ stats.get('inventory_hosts', '?') }} hosts in {{ stats.get('inventory_groups_yaml', '?') }} group(s).
Clear WMT Requests

Deletes all WMT update requests (pending, accepted and rejected). Devices are not affected and can submit new requests at any time.

Currently {{ stats.get('wmt_requests', '?') }} update request(s).
{% endblock %}