Commit 20e0023
committed
hp_proliant_da_cntlr: do not discover phantom controllers
The controller table (cpqDaCntlrTable) on HPE ProLiant Gen11 / iLO 6 contains a
placeholder row -- typically index 0 -- whose condition, role, board status and
board condition cells are all '0', a value the vendor MIB does not define.
parse_hp_proliant_da_cntlr already parses such rows to None, but discovery
iterated over all section keys and still created a service for the phantom row,
which was then permanently UNKNOWN ('Controller not found in SNMP data').
Discovery now skips None entries.1 parent ba70025 commit 20e0023
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- cmk/plugins/hp_proliant/agent_based
- tests/unit/cmk/plugins/hp_proliant/agent_based
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments