Files
broom/mgmt/static/page-server.html
morningstar-sudo 40c8d42349 Refactor iSCSI disk terminology and add DNS functionality
- Updated logging and error messages to replace "games disk" with "iSCSI disk" for consistency across the codebase.
- Added a new DNS module to manage DNS server functionality for healthy machines.
- Enhanced the monitoring system to include DNS status and blocked states.
- Updated front-end pages to reflect changes from "games disks" to "iSCSI disks" and added DNS configuration options.
- Implemented unit tests for the new DNS functionality, including query handling and IP resolution logic.
2026-10-18 10:10:02 +07:00

44 lines
3.4 KiB
HTML

<section id="page-server">
<div class="d-flex flex-wrap align-items-baseline gap-3 mb-4"><h1 class="h4 mb-0">Server</h1>
<span class="small text-body-secondary">Live load and disk health of this server.</span>
<span class="flex-grow-1"></span><button class="btn btn-sm btn-outline-secondary" data-click="loadServer" title="Refresh" aria-label="Refresh"><svg class="ic" aria-hidden="true"><use href="/icons.svg#refresh"/></svg></button></div>
<div class="card card-body mb-3">
<h2 class="h6 text-uppercase text-body-secondary mb-3">Server now</h2>
<div id="b_res" class="msg">—</div>
</div>
<div class="card card-body mb-3">
<h2 class="h6 text-uppercase text-body-secondary mb-3">Last 10 minutes</h2>
<div class="row g-3">
<div class="col-lg-4"><div class="small text-body-secondary mb-1">CPU · RAM (%)</div><div style="position:relative;height:180px"><canvas id="ch_cpu"></canvas></div></div>
<div class="col-lg-4"><div class="small text-body-secondary mb-1">Network (MB/s)</div><div style="position:relative;height:180px"><canvas id="ch_net"></canvas></div></div>
<div class="col-lg-4"><div class="small text-body-secondary mb-1">Image disk busy (%)</div><div style="position:relative;height:180px"><canvas id="ch_disk"></canvas></div></div>
</div>
<p class="small text-body-secondary mb-0 mt-2">Kept by this browser tab from the moment it opened (one sample every 2 s); hover for values.</p>
</div>
<div class="card card-body mb-3">
<h2 class="h6 text-uppercase text-body-secondary mb-3">Services</h2>
<div id="b_svc" class="msg">—</div>
</div>
<div class="card card-body mb-3">
<h2 class="h6 text-uppercase text-body-secondary mb-3">Disks</h2>
<p class="small text-body-secondary mb-2">More disks for images and iSCSI disks: format a free one here (or add a folder you mounted), then pick it when you create one, or move one there from the Images / iSCSI Disks page.</p>
<div id="b_disks" class="msg">—</div>
</div>
<div class="card card-body mb-3">
<h2 class="h6 text-uppercase text-body-secondary mb-3">iSCSI now</h2>
<div id="b_iscsi" class="msg">—</div>
</div>
<div class="card card-body mb-3" data-owner>
<h2 class="h6 text-uppercase text-body-secondary mb-3">Resource alert</h2>
<p class="small text-body-secondary mb-2">A banner shows on every page while CPU, RAM, network or the image disk stays at or above this.</p>
<div class="d-flex flex-wrap gap-2 align-items-center"><div class="input-group input-group-sm w-auto"><input class="form-control" id="alert_pct" type="number" min="50" max="99" style="width:80px"><span class="input-group-text">%</span></div>
<button class="btn btn-sm btn-outline-primary" data-click="setAlert">Save</button> <span id="al_msg" class="msg"></span></div>
</div>
<div class="card card-body mb-3" data-owner>
<h2 class="h6 text-uppercase text-body-secondary mb-3">RAM cache — RAM reserved for the server</h2>
<p class="small text-body-secondary mb-2">RAM kept free for the server itself when an image or iSCSI disk is loaded into RAM.</p>
<div class="d-flex flex-wrap gap-2 align-items-center"><div class="input-group input-group-sm w-auto"><input class="form-control" id="zram_reserve" type="number" min="0" style="width:100px"><span class="input-group-text">MB</span></div>
<button class="btn btn-sm btn-outline-primary" data-click="setZramReserve">Save</button> <span id="zr_msg" class="msg"></span></div>
</div>
</section>