Skip to main content

Rack status & thermal alerts

The rack status service (Aug 2026): a self-refreshing web page showing the live state of every machine in the rack plus the PDU environment readings, and a Telegram bot that sends thermal alerts — the first implementation of the "warn humans" layer of the thermal protection proposal, written after the June 2026 heat event.

At a glance​

URLhttp://srv-status.isc3 — VPN / LAN only, not published through the reverse proxy
Bot@ISC3StatusBot on Telegram — /status summary, /graph 12 h temperature chart, 🔄 Refresh / 📈 Graph buttons; replies only to allowed chats
Guestsrv-status — unprivileged LXC, CT 108 on rumba
Address192.168.88.158 (static), also srv-status / srv-status.isc3 in DNS
StackCaddy (static pages + status.json + history CSVs) · Python poller (systemd timer, every 30 s, keeps a 7-day raw + 2-year hourly environment history) · long-polling bot daemon (matplotlib for the graphs)
ContentVersion-controlled in provisioning/status/ in this repository; idempotent deploy-status.sh
Resources1 core, 512 MB RAM, 256 MB swap, 8 GB on local-lvm (4 GB until 2026-11-13, why), starts on boot

Data flow​

Everything the service reads is read-only: no credentials that can change anything live in the container.

The bot long-polls Telegram over an outbound HTTPS connection, so there is no webhook, no exposed port and no router change — consistent with the rule that only srv-web01 faces the Internet.

The page​

http://srv-status.isc3 shows, refreshed every 30 s (Aug 2026 rack inventory):

  • Stat tiles — PDU probe temperature (colour-coded against the alert thresholds), relative humidity (with the computed dew point and its distance to the chilled-water inlet, colour-coded against the condensation thresholds below — Aug 2026), total rack power draw, the UPS (load with its mains/battery state, colour-coded), and the machines-up count.
  • Machines — one card per rack device (carnaval0–10, epyc pair, rumba, calypsomaster, NAS, the three routers, PDU, tango pair, UPS), on/off by ICMP ping of the user/OS address, tinted by role with the ISC petal colours (plus a dedicated orange for carnaval, since all five petal colours are already spoken for). The cards are grouped by family — carnaval cluster, compute & hypervisors, storage, network, power, spares — each block headed by its role colour and its own up/monitored count, cards sorted by name inside a block (numeric-aware, so carnaval2 precedes carnaval10); the group order and labels are the GROUPS table in site/index.html, and a role missing from it lands in a trailing Other block. The seven spare R630s show n/a — they are iDRAC-only on 192.168.90.x, which is not routed from the guest LAN. The UPS has no network interface, so its card means something narrower: on = upsd answered, with the mains/battery state on the tile rather than in the dot. A machine's name is a link to its own Netdata dashboard at :19999 when that machine runs one — set via "netdata": true in the entry below (today: rumba, the carnaval nodes and the three EPYC hosts). For those machines the card also shows wall power and CPU busy %, both 30 s averages read from that Netdata (October 2026): the watts are the BMC's power sensor, read in-band by netdata-plugin-freeipmi, so the container holds no BMC credential. A Netdata that answers also marks the machine on when ICMP was lost. Dell boards name the sensor Pwr Consumption; the Gigabyte EPYC boards expose a single SYS_POWER, picked up as the only one; another board sets its own with "power_sensor" in the entry. The EPYC hosts sit on VLAN 20 (192.168.20.10–.12, October 2026), which the CCR2004 closes to the 88 LAN except for two forward rules letting srv-status reach :19999 and ICMP there (access model). The family header adds up the watts of its members (e.g. the carnaval total). A machine with no power sensor of its own takes the draw of its PDU outlet when its entry names it ("pdu_outlet": N); its card then says (PDU outlet) — today tango0, on outlet 24. The Total power tile shows the PDU reading with the metered sum under it; the difference is the equipment without a sensor (switches, NAS, the spares' iDRAC standby, hosts without Netdata). The plugin is installed by step 4 of the post-install*.sh scripts in provisioning/pve/. On some BMCs (calypsomaster's iDRAC9, epyc0's AMI MegaRAC) the plugin reads nothing until it gets an SDR cache directory: [plugin:freeipmi] command options = sdr-cache-dir /var/cache/netdata/ipmi-sdr in /etc/netdata/netdata.conf, which post-install.sh sets since 2026-10-22.
  • Hardware panel (October 2026) — clicking a machine card (anywhere but its name, which stays the Netdata link) opens a side panel with its sockets × CPU model, thread count (as top shows it), memory and disks. For the hosts with a Netdata the values come from the machine itself, read once an hour from that Netdata (host labels of /api/v1/info, one RAPL power zone per CPU package for the sockets, model label of the physical disk.io devices) into /hardware.json. Memory is the kernel's MemTotal rounded up to the next 8 GB (125.8 GiB shows as 128 GB). Arm hosts have no RAPL zone, so tango0 sets "sockets": 1 in machines.json. Disk sizes are not available; behind a PERC in RAID mode the OS sees one virtual disk, not the drives. The other machines (NAS, the two MikroTiks, the spares) show a "hw" block declared by hand in their machines.json entry, labelled declared with its date. A host that stops answering keeps its last reading with its date. When a reading differs from the previous one — CPU, memory, or the set of disk models — the poller sends one 🧩 alert on the alert channels; the new values become the reference. The machine pages under hardware are not checked automatically: compare them against the panel when editing them.
  • Proxmox guests — every CT/VM on rumba with its state, via the API token above.

The machine list lives in provisioning/status/poller/machines.json — when the rack changes, update it (and rack.mdx) and re-run the deploy script. The Proxmox guest list needs no such maintenance: it is read live from the API on every poll, so new or retired guests appear on their own.

PDU phases (/pdu.html, October 2026)​

http://srv-status.isc3/pdu.html, linked from the main page:

  • one card per input phase — current against the PDU's own thresholds (13 A near overload, marked on the bar; 16 A overload), voltage, active power, power factor and the peak current since the PDU's last reset, read over SNMP (rPDU2PhaseStatusTable);
  • the 24 metered outlets with their draw, coloured by phase: outlets 1–8 are on L1, 9–16 on L2, 17–24 on L3. The outlets carry no names on the PDU, so the page shows numbers only;
  • the current per phase history: L1/L2/L3 as three lines on one ampere axis, without the min–max band, with the 13 A / 16 A thresholds when they enter the range, same seven scales as below. Its columns are in the two history CSVs.

The chart code is site/charts.js, shared with graphs.html: each page draws the charts whose <svg id="chart-KEY"> it contains.

Temperature, power & UPS history (/graphs.html, Aug 2026)​

http://srv-status.isc3/graphs.html charts the PDU probe temperature, the total rack power draw and the UPS load at seven scales — 12 h, 24 h, 7 d (from the raw 30 s samples) and 30 d, 6 m, 1 y, 2 y (from hourly aggregates). The measures live on different scales (°C, kW, %), so each gets its own stacked chart — never a dual axis — sharing the range selector. The phase currents are charted on the PDU page. Each chart has a mean line plus a min–max band per bucket, min/mean/max tiles for the selected range, and a crosshair tooltip (mouse or keyboard); the temperature chart adds the warn/crit reference lines when they enter the visible range. The y-axes rescale to the data of each range. Rendering is dependency-free inline SVG — nothing is fetched from outside the container.

Two files back it, both kept by the poller in /var/lib/isc-status/ and served read-only under /data/:

FileContentsRetention
/data/history.csvone row per 30 s poll: utc-iso,temp_c,power_w,humidity,ups_load,ups_battery_v,ups_input_v,l1_a,l2_a,l3_a,l1_w,l2_w,l3_w (phases since 2026-10-21)7 days
/data/history-hourly.csvone row per complete UTC hour: min/avg/max of temperature, power and humidity, the sample count, then min/avg/max of UPS load, battery voltage and input voltage, then of the L1/L2/L3 current and the L1/L2/L3 power (columns 20–37)2 years (731 days)

The hourly file is folded from the raw one on the fly (~2 writes/hour, ≈1.5 MB at full retention), so an outage only loses hours if the poller stays down beyond the raw file's 7-day window. Humidity, battery voltage and input voltage are recorded but not charted (todo). History collection started 2026-08-02, the UPS columns a day later, so the long scales fill in as the data accumulates.

Only ever append columns

Both files are parsed positionally, and graphs.html reads the hourly sample count at a hard-coded column index 10 — which is why the UPS aggregates sit after the count rather than grouped with the other metrics. The rule and the frozen column ranges are written above HOURLY_COLS in isc-status-poller.py. Note also that Caddy serves only the two files matched explicitly under /data/: a third CSV would need that matcher edited before the browser could see it.

Alerts​

On every 30 s run the poller checks three things (plus, hourly, the hardware of the Netdata hosts — above). Every alert goes to the configured Telegram chat and by email to the admin, submitted to the srv-mail relay on plain port 25 (srv-status is on its mynetworks list, so the container still holds no mail credential — Aug 2026). The recipient is the mail_to key of telegram.json, defaulting to the address hard-coded in the poller; an empty string disables the email channel.

Thermal — the PDU probe against the layer-1 thresholds of the thermal protection proposal:

EventBehaviour
≥ 35 °C🌡️ warn message
≥ 45 °C🔥 critical message
still hotreminder every 30 min
cooled down✅ recovery message (2 °C hysteresis, so no flapping at the threshold)
probe unreadable⚠️ alert after ~5 min of consecutive SNMP failures

Condensation (Aug 2026) — the dew point of the room air (Magnus formula from the probe's temperature and humidity, published as dew_point_c in status.json) against the coldest chilled-water surface in the room. The inlet water measured 16–17 °C in Aug 2026 and the alarm first used 16 °C, but the dew point reached 17.3 °C (hourly mean 16.6) without any condensation — the exposed pipe surfaces are warmer than the water — so since 2026-08-28 the reference is 19 °C, 2 °C above the highest value recorded. The alarm level is decided on the 10-minute mean of the dew point, not the instantaneous value: the probe reports integer-% humidity, so a single RH step (plus the A/C cycle) moves the dew point ~1.2 °C at once, across the whole hysteresis. Smoothing cut the first week's message count by roughly a factor of seven, on the same data.

EventBehaviour
mean dew point ≥ 17 °C (within 2 °C of the reference)💧 warn message, once per episode
mean dew point ≥ 19 °C (at the reference)💧 critical message, reminder every 4 h (dew_renotify_min)
mean dew point back below 16 °C✅ recovery message (1 °C hysteresis)

Warn deliberately does not re-notify: with the earlier 16 °C reference the dew point sat in the warn band ~40 % of summer hours, so a periodic warn reminder would be pure noise. The reference values are water_inlet_c / dew_warn_margin_c in telegram.json (defaults 19 / 2); the page hard-codes the same two constants in index.html (and colours its tile on the instantaneous value, so the tile can change before the alarm does).

High humidity (Nov 2026) — the probe's relative humidity, decided on the 10-minute mean like the dew point. The PDU cannot alarm on it (power). Highest hourly value on record: 83 % (September 2026).

EventBehaviour
mean RH ≥ 75 %💦 warn message, once per episode
mean RH ≥ 85 %💦 critical message, reminder every 4 h (dew_renotify_min)
mean RH back below 70 %✅ recovery message (5 % hysteresis)

The thresholds are rh_warn / rh_crit in telegram.json (defaults 75 / 85).

UPS (Aug 2026) — the UPS ups.status flags:

EventBehaviour
OB / LB — mains lost⚡ critical message
OVER — output overloaded🔌 critical message
RB — replace battery🔋 warn message
any other flag set without OL⚠️ warn message quoting the raw flags
unchanged and not OKreminder every 30 min
back on mains✅ recovery message
upsd unreachable⚠️ alert after ~5 min of silence

Thresholds and the reminder intervals are the warn_c / crit_c / water_inlet_c / dew_warn_margin_c / renotify_min / dew_renotify_min / mail_to keys of /etc/isc-status/telegram.json inside the container; alerting is dormant when that file is absent. Remember the June 2026 calibration note: node inlet sensors read a few degrees above the PDU probe.

caution
The UPS alert is keyed on ups.status and nothing else

battery.runtime and battery.charge on this UPS are NUT estimates, not measurements, so the poller does not publish them — why. Do not add a threshold on either.

rumba now runs on the UPS, so a long enough outage takes the poller down with it. The message arrives at the start of an outage, not at its end.

The bot​

@ISC3StatusBot answers two commands (both in the bot's command menu), and answers only the chat(s) configured in telegram.json (chat_id, plus an optional allowed_chats list); anyone else who finds the bot is ignored.

Since November 2026 chat_id is the Telegram group of the rack admins, so the alerts reach everyone in it and the commands work there; adding a person to the group is all it takes. provisioning/status/telegram-chat.sh points the bot at another chat and keeps the previous one in allowed_chats.

  • /status — the current summary: temperature, power, humidity, the UPS state and load, which monitored machines are off, guest states, and the poll timestamp in Swiss local time. Every reply carries 🔄 Refresh (re-edits the message with fresh data) and 📈 Graph inline buttons.
  • /graph — a PNG chart of the last 12 h of PDU probe temperature, drawn with matplotlib from the poller's rolling history (/var/lib/isc-status/history.csv, pruned to 7 days). The line breaks visibly where the poller was down or the probe unreadable; the configured warn/crit thresholds are drawn as reference lines when the data gets near them (Aug 2026).

Operations​

  • Redeploy / rebuild: provisioning/status/deploy-status.sh — idempotent, recreates the container from scratch if CT 108 is gone, refreshes files otherwise.
  • Secrets: the Proxmox API token and the Telegram bot credentials exist only inside the container; the secretzone (rumba.md there) documents what they are and how to rotate them.
  • Publishing: deliberately internal-only. If it is ever published, do it as a Caddy vhost on srv-web01 — never a router change — and put authentication in front first: the page reveals the power state of every machine in the room.