Add a weekly digest and report which version of the agent each server runs
- Weekly digest through the notification channels: alerts now, a week of uptime, what happened, disks heading for full, expiring secrets and domains, updates waiting, planned maintenance. Off until switched on in Settings -> Notifications; Preview and Send it now there. Setting key 'digest'. - Agents say their version in every report (Linux and Windows scripts are version 2); the server compares it with the scripts it serves and marks agents that are behind on the Servers, server and Updates pages. servers.agent_version, migration 0026. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3da5c639b1
commit
aa94d84f6c
28 files changed
+3179
-19
No files matched your search
@@ -20,6 +20,7 @@ import UptimeRibbon from "../components/UptimeRibbon";
|
||||
import RunsOn from "../components/RunsOn";
|
||||
import RunPlaybook from "../components/RunPlaybook";
|
||||
import UpdatesBadge from "../components/UpdatesBadge";
|
||||
import { agentState, agentVersionWords } from "../utils/agent";
|
||||
import ServerTags from "../components/ServerTags";
|
||||
import ServerTaskTable, { SCHEDULE_TYPE_LABELS } from "../components/ServerTaskTable";
|
||||
import { formatDateTime } from "../utils/date";
|
||||
@@ -777,6 +778,17 @@ export default function ServerDetail({ user }: { user: CurrentUser }) {
|
||||
)}
|
||||
{server.lastSeenAt && (
|
||||
<>
|
||||
<dt className="col-5">Agent</dt>
|
||||
<dd className="col-7">
|
||||
{agentVersionWords(server.agentVersion)}{" "}
|
||||
{agentState(server, detail.agentLatest) === "behind" ? (
|
||||
<span className="badge bg-yellow-lt text-yellow" title="Run its install command again to update it (Servers → Manage servers).">
|
||||
update available
|
||||
</span>
|
||||
) : (
|
||||
<span className="badge bg-green-lt text-green">current</span>
|
||||
)}
|
||||
</dd>
|
||||
<dt className="col-5">Updates</dt>
|
||||
<dd className="col-7">
|
||||
<UpdatesBadge updates={server.pendingUpdates} />
|
||||
|
||||
Reference in new issue
Block a user