Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-23

- **NUT's driver on `morpheus` retries for 14 seconds, not 6.** The *data
stale* spells come from the UPS card, not the network. A 45-minute capture
counted 93 stalls in which the card answered nothing for 2 to 8 seconds, about
twice a minute; ICMP to it lost nothing. NUT's defaults give up at about 6
seconds, so only the two stalls longer than that, 7.1 and 8.2 seconds, became
spells, each logged the second its stall passed 6 seconds. At 18:36 local
*Extra Arguments to driver* gained `snmp_timeout = 2` and `snmp_retries = 6`,
about 14 seconds for each unanswered request. The first hour after had no
spell while 10 of the exporter's scrapes waited out a stalled request, but 13 of the 49 hours
before also had none, so a clean day is the bar. Why the card stalls is still
open. `shut-down-on-the-ups.md` carries the two lines and the reasoning.

- **`update-the-ups-firmware.md` is written, for #1698.** Reading the release
notes changed the plan for both updates. The card's current firmware, 3.6.1.2,
installs only through Schneider's Windows SNS tool and with a paid Secure NMC
Expand Down
6 changes: 4 additions & 2 deletions docs/observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,10 @@ connected" ten times in three minutes, held for five, which is the driver on
`NutCommunicationsLost` (critical) fires on upsmon's own "is unavailable",
five minutes without UPS data on that host. `NutMonitorFailedToStart` catches
an `upsmon` that refused its configuration and exited. The brief *data stale*
spells, about a hundred a day and seconds long, are left alone, but
`NutUpsDataStaleFrequent` warns when an hour has more than 24 of them, twice
spells are the UPS card going silent for a few seconds; since 2026-11-23 the
driver on `morpheus` retries for 14 seconds to ride them out
([`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md#why-the-driver-retries-for-14-seconds)).
The spells that remain are left alone, but `NutUpsDataStaleFrequent` warns when an hour has more than 24 of them, twice
the worst hour measured to 2026-11-23. Silence is left alone too: an `upsmon`
that is not running logs nothing. That case, and `upsd` itself down, is
`NutUpsUnreadable`'s in `prometheus/rules/ups.rules.yaml`, which asks `upsc`
Expand Down
31 changes: 30 additions & 1 deletion docs/runbooks/shut-down-on-the-ups.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,17 @@ authPassword=<AUTHPASS>
privPassword=<PRIVPASS>
mibs=apcc
pollfreq=15
snmp_timeout = 2
snmp_retries = 6
```

`secName` is `prometheus` — the username in `generator.yaml`'s `auth_apc`
block, which is the credential the exporter has already been using against
this card since 2026-09-21. `mibs=apcc` names NUT's PowerNet MIB; `snmp-ups`
autodetects it and the line only makes the choice visible.
autodetects it and the line only makes the choice visible. The last two
lines give each unanswered request about 14 seconds of retries before the
driver gives up on it; [Why the driver retries for 14 seconds](#why-the-driver-retries-for-14-seconds)
says why.

### 1.4 Reveal and fill in Advanced settings

Expand Down Expand Up @@ -347,6 +352,8 @@ secLevel=authPriv
secName=prometheus
mibs=apcc
pollfreq=15
snmp_timeout = 2
snmp_retries = 6
LISTEN 127.0.0.1
LISTEN ::1
LISTEN 10.0.30.1 3493
Expand Down Expand Up @@ -1376,6 +1383,28 @@ for this one. Anything the driver needs beyond the address has to arrive
through *Extra Arguments to driver*, which the package appends inside the
`[mjolnir]` section. That is why the v3 credential goes there.

### Why the driver retries for 14 seconds

The card stops answering SNMP for a few seconds about twice a minute. A
45-minute capture on `morpheus` on 2026-11-23 counted 93 such stalls, mostly
3 to 5 seconds and up to 8; the card sends nothing during one, neither a reply
nor an error. With the driver's defaults, one-second retries, NUT gives up at
about 6 seconds, and `upsd` marks the data stale. In the capture only the two
stalls longer than that, 7.1 and 8.2 seconds, became *data stale* spells, each
logged the second its stall passed 6 seconds and cleared on the card's next
answer. The exporter sees the same stalls as scrapes that take 5 seconds or
more: one of its requests waited out the exporter's default 5-second request
timeout and was retried. The scrape itself, with a 45-second
`scrape_timeout`, still succeeds.

`snmp_timeout = 2` with `snmp_retries = 6` gives one unanswered request about
14 seconds, longer than any stall measured. That is a budget per request, not
the time to flag an outage: `upsd`'s 15-second `MAXAGE` counts from the
driver's last message, and how soon a card that is really gone is now marked
stale was not measured. Why
the card stalls at all is not known; it is the card's own behaviour, not the
network's, since ICMP to it lost nothing during the capture.

### Why `smaug` is a subscriber at all

Until 2026-11-06 it was in the media room, not the rack, and nothing
Expand Down