Werk #22348 · Sep 22, 26
winperf_if: do not crash on error lines in the network adapter data
When the script host on a monitored Windows host failed while collecting network
adapter details, the agent appended its own error message to the section, for
example CScript Error: Execution of the Windows Script Host failed.
(0x8007000E).
Checkmk could not read that line and gave up on the whole section with
IndexError: list index out of range. A crash report was created on every check
cycle, and every interface of the affected host lost its alias, speed, MAC
address and connection status, because none of the adapter details could be read
any more.
Lines that do not carry a complete set of adapter details are now ignored. The adapters the agent did report are monitored with their details as before.
Checkmk does not surface the agent's own error message; it only no longer lets that message stop the remaining adapters from being monitored.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p15All Editions
- 2.4.0p39All Editions