#5756 "The agent says when its host rebooted and when it lost contact, so downtime is recorded as what it was". Agent 1.14.0 posts events with the next post that gets through: started (with the host's boot time), stopping (on SIGTERM, with whether systemd says the host is going down) and lost_contact (from its first unanswered post to the one carrying it). Steward keeps them as the host's downtime (host_downtime): reboot, agent_stop, unclean (a boot after the agent was last heard that nobody announced) or lost_contact. Retried posts apply once. An announced stop explains the silence for reboot_grace_seconds (Settings -> Plugins -> host_agent, 10 minutes): seconds_since_seen reads 0 until then, and the host's other rules go quiet with it (agents_away beside #5721's registry). Past the grace, agent offline fires. The host's Agent card lists the last 7 days of downtime. Rows are pruned at data.retention_days. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
772 B
YAML
23 lines
772 B
YAML
# plugins/host_agent/plugin.yaml
|
|
name: host_agent
|
|
version: "1.2.0"
|
|
description: "Remote Linux host resource monitoring via a lightweight Python push agent (CPU incl. per-core, memory + PSI, storage, disk I/O, network throughput, load, temperatures, uptime)"
|
|
author: "Steward"
|
|
license: "MIT"
|
|
min_app_version: "0.1.0"
|
|
repository_url: "https://git.fabledsword.com/bvandeusen/Steward-plugins"
|
|
homepage: "https://git.fabledsword.com/bvandeusen/Steward-plugins/src/branch/main/host_agent"
|
|
tags:
|
|
- host
|
|
- monitoring
|
|
- cpu
|
|
- memory
|
|
- storage
|
|
|
|
config:
|
|
stale_after_seconds: 180
|
|
# How long a reboot or restart the agent announced explains its silence
|
|
# before "agent offline" fires (agent >= 1.14.0, #5756).
|
|
reboot_grace_seconds: 600
|
|
default_interval_seconds: 30
|