Skip to content

Commit

Permalink
17223 FIX HW/SW Inventory: Fix sporadic disappearing
Browse files Browse the repository at this point in the history
SUP-20276
SUP-22016

Change-Id: Ia8ebb2b8f4bc3b6df5adff6a897f298960b57c5f
  • Loading branch information
SoloJacobs committed Jan 14, 2025
1 parent 00dcd2d commit aa67206
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .werks/17223.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[//]: # (werk v2)
# HW/SW Inventory: Fix sporadic disappearing

key | value
---------- | ---
date | 2025-01-13T17:53:39+00:00
version | 2.3.0p25
class | fix
edition | cre
component | inv
level | 1
compatible | yes

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](https://checkmk.com/werk/13242).
A similar, but different issue, is addressed in [#Werk 17222](https://checkmk.com/werk/17222).
2 changes: 0 additions & 2 deletions cmk/base/automations/check_mk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,6 @@ def _single_file_paths(self, hostname: HostName) -> list[str]:
f"{counters_dir}/{hostname}",
f"{tcp_cache_dir}/{hostname}",
f"{var_dir}/persisted/{hostname}",
f"{var_dir}/inventory/{hostname}",
f"{var_dir}/inventory/{hostname}.gz",
]

def _delete_host_files(self, hostname: HostName) -> None:
Expand Down

0 comments on commit aa67206

Please sign in to comment.