Werk #17223: HW/SW Inventory: Fix sporadic disappearing

Component HW/SW inventory
Title HW/SW Inventory: Fix sporadic disappearing
Date Jan 13, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p25 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p39 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change affects customers, which are monitoring hosts on a remote site. Previously, the HW/SW inventory would sporadically disappear on the central site, even though it was shown correctly on the remote site. This was due to an incorrect implementation of the diskspace utility. This implementation assumed that the inventory data was only needed on the remote site. With this change, diskspace will only consider deleting the inventory data of hosts, which have been deleted.

The faulty behaviour was introduced in #Werk 13422. A similar, but different issue, is addressed in #Werk 17222.

To the list of all Werks