Fold alerts under their host, recurring maintenance, run playbooks from alerts, and an Updates page
- Servers can say what they run on (or it is worked out from the Proxmox node); when the host is down the guests' offline alerts fold under it: held back, not counted, not notified, still recorded. - Recurring maintenance schedules made into ordinary windows a week ahead (maintenance_schedules). - Run a Semaphore template limited to a server from its page or an alert, and watch the run. - Agents report pending updates (apt, dnf, zypper, Windows Update); an Updates page lists them. - Migrations 0024 and 0025. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44e393f172
commit
171511c6db
45 files changed
+6772
-44
No files matched your search
@@ -17,6 +17,9 @@ import ServerTrends from "../components/ServerTrends";
|
||||
import ServerActivity from "../components/ServerActivity";
|
||||
import TimeAgo from "../components/TimeAgo";
|
||||
import UptimeRibbon from "../components/UptimeRibbon";
|
||||
import RunsOn from "../components/RunsOn";
|
||||
import RunPlaybook from "../components/RunPlaybook";
|
||||
import UpdatesBadge from "../components/UpdatesBadge";
|
||||
import ServerTags from "../components/ServerTags";
|
||||
import ServerTaskTable, { SCHEDULE_TYPE_LABELS } from "../components/ServerTaskTable";
|
||||
import { formatDateTime } from "../utils/date";
|
||||
@@ -755,6 +758,36 @@ export default function ServerDetail({ user }: { user: CurrentUser }) {
|
||||
<dd className="col-7">
|
||||
<UptimeRibbon kind="servers" id={server.id} name={server.name} />
|
||||
</dd>
|
||||
<dt className="col-5">Runs on</dt>
|
||||
<dd className="col-7">
|
||||
<RunsOn serverId={server.id} parent={detail.relations.parent} canEdit={isAdmin} onChanged={() => void loadDetail()} />
|
||||
</dd>
|
||||
{detail.relations.children.length > 0 && (
|
||||
<>
|
||||
<dt className="col-5">Runs here</dt>
|
||||
<dd className="col-7">
|
||||
{detail.relations.children.map((c, i) => (
|
||||
<span key={c.id}>
|
||||
{i > 0 && ", "}
|
||||
<Link to={`/servers/${c.id}`}>{c.name}</Link>
|
||||
</span>
|
||||
))}
|
||||
</dd>
|
||||
</>
|
||||
)}
|
||||
{server.lastSeenAt && (
|
||||
<>
|
||||
<dt className="col-5">Updates</dt>
|
||||
<dd className="col-7">
|
||||
<UpdatesBadge updates={server.pendingUpdates} />
|
||||
{server.updatesPendingSince && server.pendingUpdates && server.pendingUpdates.count > 0 && (
|
||||
<div className="text-secondary small">
|
||||
waiting since <TimeAgo value={server.updatesPendingSince} />
|
||||
</div>
|
||||
)}
|
||||
</dd>
|
||||
</>
|
||||
)}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
@@ -763,6 +796,16 @@ export default function ServerDetail({ user }: { user: CurrentUser }) {
|
||||
|
||||
{hardware.source === "agent" && <ServerTrends serverId={serverId} />}
|
||||
{(user.role === "admin" || user.role === "operator") && <ServerActivity serverId={serverId} />}
|
||||
{canEditTasks && (
|
||||
<div className="card mb-3">
|
||||
<div className="card-header">
|
||||
<h3 className="card-title">Run a playbook</h3>
|
||||
</div>
|
||||
<div className="card-body">
|
||||
<RunPlaybook serverName={server.name} defaultLimit={server.name} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ServerPorts
|
||||
serverId={serverId}
|
||||
|
||||
Reference in new issue
Block a user