Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You might encounter, that the host inventory data might disappear on either every inventory run or at least several times a day, like this:

Solution

The solution is to set the check interval settings to 4 hours minimum or a multiple of it (like 8/12/16h and so on):

Image Removed


The reason for this behaviour is caused by inventory caching, which is hardcoded to 4h.HW/SW inventory is, related to CMK agent hosts, a two-step story:

  • the agent plugin collects the data, by default every 4h
  • the data delivered by the agent is then validly cached on CMK site side for 4h (or however the plugin interval is set)
  • the HW/SW inventory service runs every 24h (set by rule "normal check interval for service checks") and reads the cached data - NO AgentPoll is done at this time!

Now it could be due to different things that the data disappears:

  • there is no AgentAccess for 4h, so the data can't be fetched
  • the plugin interval is set longer than that of the service
  • or, attention: if the agenthost is queried multiple times from the same IP, then it could be that the data is "stolen" between these queries and therefore does not exist! This could happen e.g. if
    another site on the same server as the "correct" one queries the host (SRC address is the same and the agent thinks it has already sent the data) or
    the host is queried multiple times (but with different hostnames) from the same site - with the same result related to the SRC address




Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("agent","inventory") and type = "page" and space = "KB"
labelsagent inventory

...