diff --git a/README.md b/README.md index cd1ff9d7..c9c57b81 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ documents for different readers. can't run an agent (firewall, switch, UPS, iLO). One agent config, deployed identically everywhere. [How](docs/architecture.md#observability-data-flow) - **Dashboards and alerting as code.** 8 provisioned dashboards, 156 panels, and - 206 alert rules — 178 metric-based in Prometheus, 28 log-based in Loki — sharing + 210 alert rules — 182 metric-based in Prometheus, 28 log-based in Loki — sharing one Alertmanager routing tree. No dashboard exists only in a database. - **Secrets encrypted in-repo with SOPS + age.** Per-device credentials, decrypted at deploy time into gitignored paths, with `git log` showing which @@ -207,7 +207,7 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology . ├── stacks/ │ ├── observability/ # the estate's stack on prometheus — ten services -│ │ ├── prometheus/ # config, file_sd targets, 178 alert rules +│ │ ├── prometheus/ # config, file_sd targets, 182 alert rules │ │ ├── alertmanager/ # routing and inhibition │ │ ├── loki/ # single-binary config + 28 LogQL rules │ │ ├── alloy/ # the agent config directory, shipped to every host diff --git a/docs/changelog.md b/docs/changelog.md index 5550ba73..d095d7a0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -47,6 +47,31 @@ docstring gives: it is a record, not a claim about now. registered with github, so no credential on the host reaches the repository; revoking the old key on github, if it was ever added there as a deploy key, is off-host and the owner's. The `.claude` removal stands. + +- **`mjolnir`'s outlet groups are polled, and the card's last settings are + recorded.** + - **Outlet groups.** The card's outlet-group status and config tables are + now in `generator.yaml`. The control table, which switches the groups, + is left out. Read on 2026-11-24, every group was on, had no load shedding + of any kind, and had a 90-second turn-off delay and a 0-second turn-on + delay. `UpsOutletGroupOff` pages when a group is off for five minutes. + In practice that is only group 2. Turning off group 1 (the firewall and + the core switch) or group 3 (the MokerLink) cuts the monitoring path + first, and the external `Watchdog` heartbeat is what notices. + `UpsOutletGroupLoadShedEnabled` and `UpsOutletGroupDelayChanged` warn + when a setting moves. `UpsOutletGroupsUnread` warns when any group or + column those rules read is missing. `hardware.md` no longer says the + settings are unread. + - **The card's users and SNMPv3 access.** The users are `apc`, + `prometheus`, and the factory `device` and `readonly`. SNMPv3 is allowed + from `prometheus` and `morpheus` only. The owner fixed the card's clock, + and the 2026-11-13 SSH login from `prometheus` was the owner's. + - **`Saruman`'s half of ADR-0107 checked on the box.** All four ordered + guests have `down=90`. Each config file also shows a copy of the setting + without `down=90`, which is a snapshot's saved settings. NUT is 2.8.1, + with `SHUTDOWNEXIT no`, and `nut-monitor` is ordered before + `pve-guests` and active. + - Alert rules: 210 in all, 182 in Prometheus. - **An audit of `heimdall` found that its browser never updated by itself. `build-heimdall.md` now trims it to a kiosk.** It was read-only, from the Mac on Hicks. The same evening every new step was applied to the Pi except diff --git a/docs/hardware.md b/docs/hardware.md index 7c0e3621..d78818e5 100644 --- a/docs/hardware.md +++ b/docs/hardware.md @@ -173,16 +173,29 @@ left, went to the cable modem on 2026-11-22. **The UPS's outlet groups, read at the rack on 2026-11-07:** the PDU is on group 1, both laptops' chargers on group 2, and the MokerLink on group 3. The Smart-UPS X's card can switch and sequence each group separately, so the PDU -— and with it every host but the laptops — is one group. **Group 1's load -shedding was read on 2026-11-24**: shed after 32767 seconds on battery, and -shed below 0 seconds of runtime remaining. Those are the far ends of their -ranges, so neither can cut the PDU before the pack runs out, ticked or not. -**Still not read:** whether group 1 sheds when the UPS is overloaded, and each -group's turn-off and turn-on delays. Check them against the shutdown in -[ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md) -and the power-up order in the move runbook's §7, and write them here. -[`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) reads them -under *Before you start*, because shedding on group 1 would cut the PDU +— and with it every host but the laptops — is one group. **All three groups' +settings were read on 2026-11-24**, at the card and over SNMP: + +- **No load shedding on any group.** Shedding on time on battery, on runtime + remaining and on overload is disabled outright. The two thresholds sit at + 32767 seconds and 0 seconds, the far ends of their ranges. +- **A 90-second turn-off delay and a 0-second turn-on delay on each group.** + The turn-off delay is how long `morpheus` has to halt after it tells the + UPS to turn off. On 2026-10-29 the groups went off 90 seconds after the + command. + +Prometheus reads both tables from the card. `UpsOutletGroupLoadShedEnabled` +and `UpsOutletGroupDelayChanged` warn if a setting moves from the values +above. `UpsOutletGroupsUnread` warns if any of the three groups, or any column +those rules read, stops arriving. `UpsOutletGroupOff` pages if a group goes +off, **but in practice only for group 2.** Group 1 carries the firewall and +the core switch, and group 3 the MokerLink that is `prometheus`'s and +`oracle`'s only network. Either one off cuts the scrape or the way out before +the page can leave. For those two the warning is the external heartbeat going +quiet: `Watchdog`'s pings stop, and the cron-monitor alerts from outside +([`observability.md`](observability.md)). +[`shut-down-on-the-ups.md`](runbooks/shut-down-on-the-ups.md) still reads +them under *Before you start*, because shedding on group 1 would cut the PDU before any host is told to halt. **Two more decisions of 2026-10-16.** The UPS's AP9641 card gets an APC @@ -370,8 +383,13 @@ warns if a card reset or anyone else moves it. The card's event log gives the reason. It shows three transfers to battery since 2026-10-29, and the UPS gave the same cause for all three: distorted input, not a cut. They lasted 279 seconds on 2026-10-29, 1 second on 2026-11-07 and 82 seconds on -2026-11-21. The card's clock keeps UTC−7 all year, so since 2026-11-01 its -log reads an hour ahead of local time. +2026-11-21. Until 2026-11-24 the card's clock kept UTC−7 all year, so from +2026-11-01 its log read an hour ahead of local time. The owner corrected it on +2026-11-24. **Its local users are `apc`, the administrator, `prometheus`, the +SNMPv3 user, and the factory `device` and `readonly` accounts.** Whether those +two are enabled has not been read. The `prometheus` SNMPv3 user is allowed +from two addresses only: `10.0.99.20`, `prometheus`, and `10.0.99.1`, NUT on +`morpheus`. ## WAN diff --git a/docs/observability.md b/docs/observability.md index 5145ab45..7d8937eb 100644 --- a/docs/observability.md +++ b/docs/observability.md @@ -352,7 +352,7 @@ separates a quiet stream from a stopped one. ## Alerting -206 rules in total: 178 metric-based in `prometheus/rules/`, and 28 log-based in +210 rules in total: 182 metric-based in `prometheus/rules/`, and 28 log-based in `loki/rules/`. ### Log-based (Loki ruler) @@ -550,7 +550,7 @@ argument and for what to do when it exits 1. ### Metric-based (Prometheus) -178 rules across 13 files in `prometheus/rules/`: +182 rules across 13 files in `prometheus/rules/`: | File | Covers | | --- | --- | @@ -587,7 +587,7 @@ as loaded and healthy and could not fire for any input ([#63](https://github.com `prometheus/tests/*.test.yaml` holds `promtool test rules` unit tests, which feed a rule synthetic series and assert it fires — paired with a case asserting it stays quiet, because a test that only ever expects silence would have passed -against the broken rule too. Coverage is 178 rules of 178 so far ([#843](https://github.com/Gerrrt/HomeLab/issues/843)) — all twelve +against the broken rule too. Coverage is 182 rules of 182 so far ([#843](https://github.com/Gerrrt/HomeLab/issues/843)) — all twelve in `blackbox.rules.yaml`, all three in `dns.rules.yaml`, all seven in `range.rules.yaml`, `GatewayFilesystemCritical`, `ContainerHighMemory`, `ContainerNearMemoryLimit`, `ContainerRestartLoop`, `ContainerCpuThrottled`, the three container-state rules from diff --git a/docs/runbooks/deploy-stack.md b/docs/runbooks/deploy-stack.md index db7a3852..90ba0dfb 100644 --- a/docs/runbooks/deploy-stack.md +++ b/docs/runbooks/deploy-stack.md @@ -151,7 +151,7 @@ Then in the UI: 1. **Prometheus → Status → Targets.** Every job `UP`. The four `snmp` targets take up to 45 seconds on their first scrape. 2. **Prometheus → Status → Rules.** Every rule loaded, none in error. The - page lists 184: the 178 alert rules this repository counts everywhere + page lists 188: the 182 alert rules this repository counts everywhere else, plus the six recording rules: `homelab_suricata_expected_interface`, `homelab_battery_runtime_seconds`, and the two directions each of diff --git a/docs/security.md b/docs/security.md index 78f2db0f..2d17aa62 100644 --- a/docs/security.md +++ b/docs/security.md @@ -35,7 +35,7 @@ What this network is actually built to survive: | Someone on Winterfell or Hicks logging in to `prometheus` | **Key-only `sshd` since 2026-11-23; no host firewall by decision.** `prometheus` holds the estate's CA key and the age key that opens every volume backup set, and converge runs as the operator, who is in `sudo` and `docker`. Its `sshd` answers all of Hicks (by `morpheus`'s pass for `22` to the segment) and every host on VLAN 99. The audit's root-only reads on 2026-11-23 found it taking passwords, with X11 forwarding on and `ufw` inactive. [ADR-0128](adr/0128-give-prometheus-a-key-only-sshd-and-no-host-firewall.md) makes `sshd` key-only through a drop-in that outranks cloud-init's, refusing root and X11 forwarding ([`restore-the-stack.md`](runbooks/restore-the-stack.md#make-sshd-key-only)). It adds no host firewall, because Docker's rules run ahead of `ufw`'s for the published ports, so a policy would cover `22` alone. Those ports stay fenced as before: by `morpheus` by destination, by the ingest proxy's tokens on `9090` and `3100`, and on `6514` by the syslog listener's pinned client certificate and its sender list. The step was applied the same day. `sshd -T` read `no` for all four settings, a password login and a keyboard-interactive login were each refused with `Permission denied (publickey)`, and a key login from Hicks succeeded after the reload. | | Someone on Hicks or Winterfell logging in to `smaug` | **Key-only `sshd` since 2026-11-24.** `smaug` holds the household's media and the `erebor` pool. Two hosts reach its `22`, each by a host-scoped pass on `morpheus` ([`network.md`](network.md)): `prometheus`, as the read-only backup user `frodo`, and `desktop-02` on Hicks, as the administrator `gerrrt`. From 2026-11-13 `gerrrt` logged in by password, allowed both on the user and in the SSH service's *Password Login Groups*, while the documents said `frodo` was the only user. Both settings were cleared in the TrueNAS UI on 2026-11-24. `sshd_config` then had no `Match` block left, and a connection as `gerrrt` or `root` was offered `publickey` alone. | | Someone with the trusted Wi-Fi key quietly joining | Kea's lease log reaches Loki; `UnknownDeviceOnTrustedSegment` fires the first time a MAC appears on VLAN 50 in seven days ([ADR-0019](adr/0019-read-device-joins-from-the-dhcp-server.md)) | -| Losing visibility of a failure | 206 alert rules, 30 days of metrics and logs | +| Losing visibility of a failure | 210 alert rules, 30 days of metrics and logs | | Someone on a reachable VLAN silencing an alert to hide a failure | Alertmanager binds to `127.0.0.1`; silences go through authenticated Grafana | | Mains power loss | **The rack, yes; the monitoring path, yes — on two laptop cells that were measured for the first time on 2026-09-12.** A pack fitted to `mjolnir` on 2026-08-28 passed its self-test; the TP-Link carrying `prometheus` and `oracle` has been on UPS power since 2026-09-08 ([#110](https://github.com/Gerrrt/HomeLab/issues/110)); the laptops ride a cut out on their own batteries, which `HostBatteryHealthLow` in `host.rules.yaml` now reads — `prometheus`'s cell was replaced on 2026-09-18 and reads 101 % of design, `oracle`'s was replaced on 2026-09-29 and reads 100 %, its design figure rather than a learned one ([#531](https://github.com/Gerrrt/HomeLab/issues/531)) — and **each runtime was measured once: `prometheus`'s on 2026-09-19, about 2.5 hours from full at the stack's load, and `oracle`'s on 2026-09-29, about 5.2 hours**; since the same day the projection is recorded on every cut and pages under thirty minutes (`HostBatteryRuntimeLow`, [#532](https://github.com/Gerrrt/HomeLab/issues/532)), but neither pack reports a moving cell temperature, so this row is answered for both hosts' runtime and for neither's cell temperature — see below. **What happens when the cut outlasts the pack is configured and accepted without a live test.** Since 2026-09-23 the firewall's NUT server reads `mjolnir`, and `Saruman` and `smaug` subscribe to it on their own gateway addresses, so a real cut would now try to run the sequence [ADR-0049](adr/0049-shut-down-on-the-ups-from-a-nut-server-on-the-firewall.md) decides: `Saruman` and `smaug` halt first and `morpheus` last. Since the move into the 32U rack on 2026-11-06 the PDU also carries `trinity`, `gandalf` (off until its build) and the console, with `smaug` racked and on the PDU directly rather than by its old long cord to the media room. [ADR-0107](adr/0107-subscribe-trinity-to-the-ups-and-bound-saruman-s-guest-stop.md) makes `trinity` a third subscriber and bounds `Saruman`'s guest stop. `Saruman`'s half was applied on 2026-11-13 (`down=90` on the four ordered guests, and its monitor stays logged in until they are down); `trinity`'s subscription, `HOSTSYNC 600` on `morpheus` and the card's 16-minute threshold followed on 2026-11-20, so all three subscribers would now halt before the pack empties; `gandalf`, the console and `neo` are left to the pack by decision. The pack itself is unmeasured: about 47 minutes at 21 % load is the card's own estimate. Neither the forced-shutdown proof nor a mains pull will be run ([ADR-0121](adr/0121-accept-the-ups-shutdown-without-a-live-test.md)) | | The estate being down while the person who runs it is unavailable | **Documentation, yes; data, no copy outside the house, by decision.** ADR-0011 puts the emergency tier on paper; [ADR-0023](adr/0023-keep-the-household-recovery-path-outside-the-estate.md) extends the same reasoning to the sensitive tier's data. That tier has held real photographs since 2026-09-28. [ADR-0122](adr/0122-drop-the-household-copy.md) dropped their copy outside the estate, so a loss of the house loses them — see below | diff --git a/stacks/observability/README.md b/stacks/observability/README.md index 37cccaa6..71f3d842 100644 --- a/stacks/observability/README.md +++ b/stacks/observability/README.md @@ -53,7 +53,7 @@ prometheus/ targets/snmp.yaml SNMP targets — hot-reloaded, no restart needed targets/node.yaml node_exporter scrapes, for the host that runs no Alloy (smaug) targets/blackbox*.yaml probe targets, http, dns and latency — hot-reloaded, no restart - rules/*.rules.yaml 178 alert rules: host, network, ups, containers, blackbox, + rules/*.rules.yaml 182 alert rules: host, network, ups, containers, blackbox, dns, backup, ids, deploy, stack, internet, watchdog and range tests/*.test.yaml promtool unit tests — assert the rules can fire blackbox/blackbox.yaml probe modules — reachability, and what a resolver said diff --git a/stacks/observability/prometheus/rules/ups.rules.yaml b/stacks/observability/prometheus/rules/ups.rules.yaml index 3fb56a2c..931c65db 100644 --- a/stacks/observability/prometheus/rules/ups.rules.yaml +++ b/stacks/observability/prometheus/rules/ups.rules.yaml @@ -623,3 +623,114 @@ groups: `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.2.1.3` and `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.5.2.7`, and compare the date's format with the regex in generator.yaml. + + # --- The three switched outlet groups (2026-11-24) --------------------- + # + # Group 1 is the PDU and every host but the laptops, group 2 the laptops' + # chargers, group 3 the MokerLink. generator.yaml has what the card held + # when these were written: every group on, no load shedding of any kind, + # 90 s turn-off delay and 0 s turn-on delay. A load shed on group 1 would + # cut every host before NUT told any of them to halt. + + - alert: UpsOutletGroupOff + # upsOutletGroupStatusGroupState: on(1), off(2), unknown(3). An off + # group has cut power to what is plugged into it. During a cut that + # ends in a shutdown this fires with UpsOnBattery, which is right. + # + # ONLY GROUP 2 CAN REALLY PAGE. Group 1 carries the firewall and the + # core switch, and group 3 the MokerLink that is prometheus's and + # oracle's only network. Either one off cuts the scrape or the way out + # before five minutes pass, so this rule cannot deliver for them. What + # does is the external heartbeat: Watchdog's pings stop, and the + # cron-monitor alerts from outside (observability.md, Watchdog). + expr: upsOutletGroupStatusGroupState{device="mjolnir"} != 1 + for: 5m + labels: + component: power + severity: critical + category: power + annotations: + runbook_url: "https://github.com/Gerrrt/HomeLab/blob/main/docs/runbooks/shut-down-on-the-ups.md#if-something-goes-wrong" + summary: "{{ $labels.upsOutletGroupStatusName }} on {{ $labels.device }} is not on" + description: >- + The card reports {{ $labels.upsOutletGroupStatusName }} as + {{ if eq $value 2.0 }}off{{ else }}unknown{{ end }}. Group 1 is + the PDU and every host but the laptops, group 2 the laptops' + chargers and group 3 the MokerLink. Read the card's event log + (Logs → Events → Log) for who turned it off before turning it + back on under Control → Outlet Groups. + + - alert: UpsOutletGroupLoadShedEnabled + # LoadShedControl...: disable(1), enable(2). Every group read 1 for all + # three on 2026-11-24. + expr: | + max by (job, instance, device, upsOutletGroupConfigIndex, upsOutletGroupConfigName) ( + upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir"} == 2 + or upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir"} == 2 + or upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir"} == 2 + ) + for: 15m + labels: + component: power + severity: warning + category: power + annotations: + runbook_url: "https://github.com/Gerrrt/HomeLab/blob/main/docs/runbooks/shut-down-on-the-ups.md#before-you-start" + summary: "{{ $labels.upsOutletGroupConfigName }} on {{ $labels.device }} has load shedding on" + description: >- + {{ $labels.upsOutletGroupConfigName }} will now be switched off on + time on battery, runtime remaining or overload. On group 1 that + cuts every host before NUT tells any of them to halt. Turn every + shed off under Configuration → Outlet Groups on the card. + + - alert: UpsOutletGroupDelayChanged + # 90 s off and 0 s on, all three groups, read 2026-11-24. The off + # delay is how long morpheus has to halt after it tells the UPS to + # turn off: on 2026-10-29 the groups went off 90 s after the command. + expr: | + max by (job, instance, device, upsOutletGroupConfigIndex, upsOutletGroupConfigName) ( + upsOutletGroupConfigPowerOffDelay{device="mjolnir"} != 90 + or upsOutletGroupConfigPowerOnDelay{device="mjolnir"} != 0 + ) + for: 15m + labels: + component: power + severity: warning + category: power + annotations: + summary: "{{ $labels.upsOutletGroupConfigName }} on {{ $labels.device }} has a changed off or on delay" + description: >- + Read upsOutletGroupConfigPowerOffDelay and ...PowerOnDelay for + {{ $labels.upsOutletGroupConfigName }}. A shorter off delay can cut + morpheus before it has halted. If the change was deliberate, + change this rule and hardware.md with it. + + - alert: UpsOutletGroupsUnread + # Without this the three rules above would sit quiet on nothing. It + # needs every column they read, for all three groups: one group's rows + # must not hide another's missing row, and a missing column must not + # hide behind the ones that are there. + expr: | + up{job="snmp", device="mjolnir"} == 1 + unless on(device) ( + count by (device) (upsOutletGroupStatusGroupState) == 3 + and on(device) count by (device) (upsOutletGroupConfigPowerOffDelay) == 3 + and on(device) count by (device) (upsOutletGroupConfigPowerOnDelay) == 3 + and on(device) count by (device) (upsOutletGroupConfigLoadShedControlTimeOnBattery) == 3 + and on(device) count by (device) (upsOutletGroupConfigLoadShedControlRuntimeRemaining) == 3 + and on(device) count by (device) (upsOutletGroupConfigLoadShedControlInOverload) == 3 + ) + for: 1h + labels: + component: power + severity: warning + category: power + annotations: + summary: "{{ $labels.device }} answers SNMP but its outlet groups are unread" + description: >- + A group or a column is missing from the outlet-group status or + config table, so UpsOutletGroupOff, ...LoadShedEnabled or + ...DelayChanged cannot fire for it. Read them from the repository + checkout with + `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.1` + and `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.2`. diff --git a/stacks/observability/prometheus/tests/ups.test.yaml b/stacks/observability/prometheus/tests/ups.test.yaml index a6200577..2cbf4290 100644 --- a/stacks/observability/prometheus/tests/ups.test.yaml +++ b/stacks/observability/prometheus/tests/ups.test.yaml @@ -116,7 +116,8 @@ tests: # 22 days of samples at 30m so the 21d range is fully covered. - interval: 30m input_series: - - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp",upsAdvTestLastDiagnosticsDate="08/28/2026"}' + - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp", + upsAdvTestLastDiagnosticsDate="08/28/2026"}' values: "1x1056" - series: 'up{device="mjolnir",instance="10.0.99.10",job="snmp"}' values: "1x1056" @@ -153,7 +154,8 @@ tests: # case fires. - interval: 30m input_series: - - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp",upsAdvTestLastDiagnosticsDate="08/28/2026"}' + - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp", + upsAdvTestLastDiagnosticsDate="08/28/2026"}' values: "1x96" - series: 'up{device="mjolnir",instance="10.0.99.10",job="snmp"}' values: "1x96" @@ -168,9 +170,11 @@ tests: # merely asserting the series exists. - interval: 30m input_series: - - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp",upsAdvTestLastDiagnosticsDate="08/28/2026"}' + - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp", + upsAdvTestLastDiagnosticsDate="08/28/2026"}' values: "1x528" - - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp",upsAdvTestLastDiagnosticsDate="09/11/2026"}' + - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp", + upsAdvTestLastDiagnosticsDate="09/11/2026"}' values: "_x528 1x528" - series: 'up{device="mjolnir",instance="10.0.99.10",job="snmp"}' values: "1x1056" @@ -187,7 +191,8 @@ tests: # SnmpTargetDown owns that failure; this must stay silent for it. - interval: 30m input_series: - - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp",upsAdvTestLastDiagnosticsDate="08/28/2026"}' + - series: 'upsAdvTestLastDiagnosticsDate{device="mjolnir",instance="10.0.99.10",job="snmp", + upsAdvTestLastDiagnosticsDate="08/28/2026"}' values: "1x1056" - series: 'up{device="mjolnir",instance="10.0.99.10",job="snmp"}' values: "0x1056" @@ -1020,3 +1025,316 @@ tests: - eval_time: 90m alertname: UpsCardReadingMissing exp_alerts: [] + + # --- The outlet groups --------------------------------------------------- + # + # UpsOutletGroupOff: group 3 off (2) fires after 5m; groups 1 and 2 on (1), + # the card as read on 2026-11-24, do not. + - interval: 1m + input_series: + - series: 'upsOutletGroupStatusGroupState{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupStatusIndex="1",upsOutletGroupStatusName="Outlet Group 1"}' + values: "1x20" + - series: 'upsOutletGroupStatusGroupState{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupStatusIndex="2",upsOutletGroupStatusName="Outlet Group 2"}' + values: "1x20" + - series: 'upsOutletGroupStatusGroupState{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupStatusIndex="3",upsOutletGroupStatusName="Outlet Group 3"}' + values: "2x20" + alert_rule_test: + - eval_time: 3m + alertname: UpsOutletGroupOff + exp_alerts: [] + - eval_time: 10m + alertname: UpsOutletGroupOff + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + upsOutletGroupStatusIndex: "3" + upsOutletGroupStatusName: Outlet Group 3 + component: power + severity: critical + category: power + exp_annotations: + runbook_url: "https://github.com/Gerrrt/HomeLab/blob/main/docs/runbooks/shut-down-on-the-ups.md#if-something-goes-wrong" + summary: "Outlet Group 3 on mjolnir is not on" + description: >- + The card reports Outlet Group 3 as + off. Group 1 is + the PDU and every host but the laptops, group 2 the laptops' + chargers and group 3 the MokerLink. Read the card's event log + (Logs → Events → Log) for who turned it off before turning it + back on under Control → Outlet Groups. + + # Load shedding and delays: group 1 with the overload shed on and a 30 s off + # delay fires both; group 2 as the card holds it (all disabled, 90 s and + # 0 s) fires neither. + - interval: 1m + input_series: + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="1",upsOutletGroupConfigName="Outlet Group 1"}' + values: "1x30" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="1",upsOutletGroupConfigName="Outlet Group 1"}' + values: "1x30" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="1",upsOutletGroupConfigName="Outlet Group 1"}' + values: "2x30" + - series: 'upsOutletGroupConfigPowerOffDelay{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="1",upsOutletGroupConfigName="Outlet Group 1"}' + values: "30x30" + - series: 'upsOutletGroupConfigPowerOnDelay{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="1",upsOutletGroupConfigName="Outlet Group 1"}' + values: "0x30" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="2",upsOutletGroupConfigName="Outlet Group 2"}' + values: "1x30" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="2",upsOutletGroupConfigName="Outlet Group 2"}' + values: "1x30" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="2",upsOutletGroupConfigName="Outlet Group 2"}' + values: "1x30" + - series: 'upsOutletGroupConfigPowerOffDelay{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="2",upsOutletGroupConfigName="Outlet Group 2"}' + values: "90x30" + - series: 'upsOutletGroupConfigPowerOnDelay{job="snmp",instance="10.0.99.10",device="mjolnir", + upsOutletGroupConfigIndex="2",upsOutletGroupConfigName="Outlet Group 2"}' + values: "0x30" + alert_rule_test: + - eval_time: 10m + alertname: UpsOutletGroupLoadShedEnabled + exp_alerts: [] + - eval_time: 20m + alertname: UpsOutletGroupLoadShedEnabled + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + upsOutletGroupConfigIndex: "1" + upsOutletGroupConfigName: Outlet Group 1 + component: power + severity: warning + category: power + exp_annotations: + runbook_url: "https://github.com/Gerrrt/HomeLab/blob/main/docs/runbooks/shut-down-on-the-ups.md#before-you-start" + summary: "Outlet Group 1 on mjolnir has load shedding on" + description: >- + Outlet Group 1 will now be switched off on + time on battery, runtime remaining or overload. On group 1 that + cuts every host before NUT tells any of them to halt. Turn every + shed off under Configuration → Outlet Groups on the card. + - eval_time: 20m + alertname: UpsOutletGroupDelayChanged + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + upsOutletGroupConfigIndex: "1" + upsOutletGroupConfigName: Outlet Group 1 + component: power + severity: warning + category: power + exp_annotations: + summary: "Outlet Group 1 on mjolnir has a changed off or on delay" + description: >- + Read upsOutletGroupConfigPowerOffDelay and ...PowerOnDelay for + Outlet Group 1. A shorter off delay can cut + morpheus before it has halted. If the change was deliberate, + change this rule and hardware.md with it. + + # UpsOutletGroupsUnread needs all six columns for all three groups. The rule + # counts by device, so these series carry only the device and an index. + # + # Every column for every group, the card as read on 2026-11-24: quiet. + - interval: 1m + input_series: + - series: 'up{job="snmp",instance="10.0.99.10",device="mjolnir"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="1"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="2"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="3"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="1"}' + values: "0x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="2"}' + values: "0x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="3"}' + values: "0x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="3"}' + values: "1x90" + alert_rule_test: + - eval_time: 90m + alertname: UpsOutletGroupsUnread + exp_alerts: [] + + # One column gone (the on delay), the other five complete: fires. + - interval: 1m + input_series: + - series: 'up{job="snmp",instance="10.0.99.10",device="mjolnir"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="1"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="2"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="3"}' + values: "90x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="3"}' + values: "1x90" + alert_rule_test: + - eval_time: 90m + alertname: UpsOutletGroupsUnread + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + component: power + severity: warning + category: power + exp_annotations: + summary: "mjolnir answers SNMP but its outlet groups are unread" + description: >- + A group or a column is missing from the outlet-group status or + config table, so UpsOutletGroupOff, ...LoadShedEnabled or + ...DelayChanged cannot fire for it. Read them from the repository + checkout with + `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.1` + and `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.2`. + + # One group gone from one column (group 3's overload shed), groups 1 and 2 + # still there: fires. + - interval: 1m + input_series: + - series: 'up{job="snmp",instance="10.0.99.10",device="mjolnir"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupStatusGroupState{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="1"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="2"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOffDelay{device="mjolnir",idx="3"}' + values: "90x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="1"}' + values: "0x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="2"}' + values: "0x90" + - series: 'upsOutletGroupConfigPowerOnDelay{device="mjolnir",idx="3"}' + values: "0x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlTimeOnBattery{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="2"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlRuntimeRemaining{device="mjolnir",idx="3"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="1"}' + values: "1x90" + - series: 'upsOutletGroupConfigLoadShedControlInOverload{device="mjolnir",idx="2"}' + values: "1x90" + alert_rule_test: + - eval_time: 90m + alertname: UpsOutletGroupsUnread + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + component: power + severity: warning + category: power + exp_annotations: + summary: "mjolnir answers SNMP but its outlet groups are unread" + description: >- + A group or a column is missing from the outlet-group status or + config table, so UpsOutletGroupOff, ...LoadShedEnabled or + ...DelayChanged cannot fire for it. Read them from the repository + checkout with + `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.1` + and `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.2`. + + # Nothing from either table: fires. + - interval: 1m + input_series: + - series: 'up{job="snmp",instance="10.0.99.10",device="mjolnir"}' + values: "1x90" + alert_rule_test: + - eval_time: 90m + alertname: UpsOutletGroupsUnread + exp_alerts: + - exp_labels: + job: snmp + instance: 10.0.99.10 + device: mjolnir + component: power + severity: warning + category: power + exp_annotations: + summary: "mjolnir answers SNMP but its outlet groups are unread" + description: >- + A group or a column is missing from the outlet-group status or + config table, so UpsOutletGroupOff, ...LoadShedEnabled or + ...DelayChanged cannot fire for it. Read them from the repository + checkout with + `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.1` + and `scripts/snmp-walk.sh --device mjolnir 1.3.6.1.4.1.318.1.1.1.12.2`. diff --git a/stacks/observability/snmp-exporter/generator.yaml b/stacks/observability/snmp-exporter/generator.yaml index 866f1076..667caba3 100644 --- a/stacks/observability/snmp-exporter/generator.yaml +++ b/stacks/observability/snmp-exporter/generator.yaml @@ -161,10 +161,40 @@ modules: # so neither adds a walk. - 1.3.6.1.4.1.318.1.1.1.2.1.3 # PowerNet-MIB::upsBasicBatteryLastReplaceDate - 1.3.6.1.4.1.318.1.1.1.5.2.7 # PowerNet-MIB::upsAdvConfigSensitivity + # The three switched outlet groups (2026-11-24): the PDU on group 1, the + # laptops' chargers on 2, the MokerLink on 3. Until now their settings + # were read by hand at the card, once, and nothing would notice a change. + # Both tables read off the card first with scripts/snmp-walk.sh: three + # rows each, the status walk 19 varbinds and the config walk 43. + # + # status .12.1.2.1.3 GroupState on(1) on all three + # config .12.2.2.1.3 PowerOnDelay 0 s .4 PowerOffDelay 90 s + # .10 .11 .12 LoadShedControl TimeOnBattery, RuntimeRemaining, + # InOverload: disable(1) on all three groups + # .13 .14 the shed thresholds, 32767 s and 0 s + # + # .12.3, the control table, is not walked: it is the one that switches + # the groups, and nothing here has any business near it. + - 1.3.6.1.4.1.318.1.1.1.12.1 # PowerNet-MIB::upsOutletGroupStatus + - 1.3.6.1.4.1.318.1.1.1.12.2 # PowerNet-MIB::upsOutletGroupConfig lookups: - source_indexes: [uioSensorStatusPortID, uioSensorStatusSensorID] lookup: uioSensorStatusSensorName + - source_indexes: [upsOutletGroupStatusIndex] + lookup: upsOutletGroupStatusName + - source_indexes: [upsOutletGroupConfigIndex] + lookup: upsOutletGroupConfigName overrides: + # Names become labels through the lookups above; the bit string repeats + # which outlets are in the group, which never changes. + upsOutletGroupStatusName: + ignore: true + type: DisplayString + upsOutletGroupConfigName: + ignore: true + type: DisplayString + upsOutletGroupStatusGroupStatus: + ignore: true upsBasicBatteryLastReplaceDate: regex_extracts: Year: diff --git a/stacks/observability/snmp-exporter/snmp.yaml b/stacks/observability/snmp-exporter/snmp.yaml index c8d32193..ac0e4f07 100644 --- a/stacks/observability/snmp-exporter/snmp.yaml +++ b/stacks/observability/snmp-exporter/snmp.yaml @@ -34,6 +34,8 @@ modules: apc_ups: walk: - 1.3.6.1.2.1.33.1 + - 1.3.6.1.4.1.318.1.1.1.12.1 + - 1.3.6.1.4.1.318.1.1.1.12.2 - 1.3.6.1.4.1.318.1.1.1.7.2 - 1.3.6.1.4.1.318.1.1.25.1.2 get: @@ -389,6 +391,278 @@ modules: type: gauge help: The maximum line voltage allowed before the UPS system transfers to battery backup. - 1.3.6.1.2.1.33.1.9.10 + - name: upsOutletGroupStatusTableSize + oid: 1.3.6.1.4.1.318.1.1.1.12.1.1 + type: gauge + help: The number of outlet groups for the UPS. - 1.3.6.1.4.1.318.1.1.1.12.1.1 + - name: upsOutletGroupStatusIndex + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.1 + type: gauge + help: The index to the outlet group entry. - 1.3.6.1.4.1.318.1.1.1.12.1.2.1.1 + indexes: + - labelname: upsOutletGroupStatusIndex + type: gauge + lookups: + - labels: + - upsOutletGroupStatusIndex + labelname: upsOutletGroupStatusName + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.2 + type: DisplayString + - name: upsOutletGroupStatusGroupState + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.3 + type: gauge + help: Getting this variable will return the outlet group state - 1.3.6.1.4.1.318.1.1.1.12.1.2.1.3 + indexes: + - labelname: upsOutletGroupStatusIndex + type: gauge + lookups: + - labels: + - upsOutletGroupStatusIndex + labelname: upsOutletGroupStatusName + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupStatusOn + 2: upsOutletGroupStatusOff + 3: upsOutletGroupStatusUnknown + - name: upsOutletGroupStatusCommandPending + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.4 + type: gauge + help: Getting this variable will return the command pending state of the outlet + group - 1.3.6.1.4.1.318.1.1.1.12.1.2.1.4 + indexes: + - labelname: upsOutletGroupStatusIndex + type: gauge + lookups: + - labels: + - upsOutletGroupStatusIndex + labelname: upsOutletGroupStatusName + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupCommandPending + 2: upsOutletGroupNoCommandPending + - name: upsOutletGroupStatusOutletType + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.5 + type: gauge + help: Getting this variable will return the type of outlet group - 1.3.6.1.4.1.318.1.1.1.12.1.2.1.5 + indexes: + - labelname: upsOutletGroupStatusIndex + type: gauge + lookups: + - labels: + - upsOutletGroupStatusIndex + labelname: upsOutletGroupStatusName + oid: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.2 + type: DisplayString + enum_values: + 1: upsSwitchedOutletGroup + 2: upsMainOutletGroup + - name: upsOutletGroupConfigTableSize + oid: 1.3.6.1.4.1.318.1.1.1.12.2.1 + type: gauge + help: The number of outlet groups for the UPS. - 1.3.6.1.4.1.318.1.1.1.12.2.1 + - name: upsOutletGroupConfigIndex + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.1 + type: gauge + help: The index to the outlet group entry. - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.1 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigPowerOnDelay + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.3 + type: gauge + help: The amount of time (seconds) the outlet group will delay powering on when + the delayed on, reboot, or shutdown command is applied - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.3 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigPowerOffDelay + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.4 + type: gauge + help: The amount of time (seconds) the outlet group will delay powering off + when the delayed off, reboot, or shutdown command is applied - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.4 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigRebootDuration + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.5 + type: gauge + help: During a reboot sequence, power is turned off and then back on - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.5 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigMinReturnRuntime + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.6 + type: gauge + help: In an Outlet Group shutdown sequence, the Outlet Group cycles power off + then on - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.6 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigOutletType + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.7 + type: gauge + help: Getting this variable will return the type of outlet group - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.7 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsSwitchedOutletGroup + 2: upsMainOutletGroup + - name: upsOutletGroupConfigLoadShedControlSkipOffDelay + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.8 + type: gauge + help: Configures whether the outlet group's off delay setting (upsOutletGroupConfigPowerOffDelay) + will be used in a load shedding situation, where applicable. - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.8 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupConfigSkipOffDelay + 2: upsOutletGroupConfigUseOffDelay + - name: upsOutletGroupConfigLoadShedControlAutoRestart + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.9 + type: gauge + help: Configures whether the outlet group will automatically restart after a + load shedding situation, where applicable. - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.9 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupConfigAutoRestart + 2: upsOutletGroupConfigManualRestart + - name: upsOutletGroupConfigLoadShedControlTimeOnBattery + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.10 + type: gauge + help: Configures whether the outlet group will load shed (turn off) after the + UPS's time on battery has exceeded the upsOutletGroupConfigLoadShedTimeOnBattery + OID setting - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.10 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupConfigDisableTimeOnBatteryLoadShed + 2: upsOutletGroupConfigEnableTimeOnBatteryLoadShed + - name: upsOutletGroupConfigLoadShedControlRuntimeRemaining + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.11 + type: gauge + help: Configures whether the outlet group will load shed (turn off) when the + UPS is on battery and the remaining runtime is less than the upsOutletGroupConfigLoadShedRuntimeRemaining + OID setting - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.11 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupConfigDisableRuntimeRemainingLoadShed + 2: upsOutletGroupConfigEnableRuntimeRemainingLoadShed + - name: upsOutletGroupConfigLoadShedControlInOverload + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.12 + type: gauge + help: Configures whether the outlet group will load shed (turn off) when the + UPS is in an overload condition - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.12 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + enum_values: + 1: upsOutletGroupConfigDisableInOverloadLoadShed + 2: upsOutletGroupConfigEnableInOverloadLoadShed + - name: upsOutletGroupConfigLoadShedTimeOnBattery + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.13 + type: gauge + help: When the UPS has been on battery for more time than this value, the outlet + group will turn off if this condition is enabled by the upsOutletGroupConfigLoadShedControlTimeOnBattery + OID - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.13 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString + - name: upsOutletGroupConfigLoadShedRuntimeRemaining + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.14 + type: gauge + help: When the runtime remaining is less than this value, the outlet group will + turn off if this condition is enabled by the upsOutletGroupConfigLoadShedControlRuntimeRemaining + OID - 1.3.6.1.4.1.318.1.1.1.12.2.2.1.14 + indexes: + - labelname: upsOutletGroupConfigIndex + type: gauge + lookups: + - labels: + - upsOutletGroupConfigIndex + labelname: upsOutletGroupConfigName + oid: 1.3.6.1.4.1.318.1.1.1.12.2.2.1.2 + type: DisplayString - name: upsBasicBatteryLastReplaceDate oid: 1.3.6.1.4.1.318.1.1.1.2.1.3 type: DisplayString