Werk #19677: Hardware/software inventory: tolerate textual ifAdminStatus values
| Component | HW/SW inventory | ||||
| Title | Hardware/software inventory: tolerate textual ifAdminStatus values | ||||
| Date | Apr 13, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
Some SNMP devices report ifAdminStatus and ifOperStatus as textual labels
(for example up, down, notPresent) instead of the numeric states
defined in the IF-MIB. When the hardware/software inventory parser tried to
convert the textual value to an integer it crashed with
ValueError: invalid literal for int() with base 10.
The parser now maps the known IF-MIB text labels back to their numeric state values, so inventory is collected correctly for these devices.