"Item not found in monitoring data" while it's there

After upgrading both check_mk server and client from latest 2.0 to 2.1p14 (raw), server is complaining on “Item not found in monitoring data”. On the client we periodically (every 30mins) write a file to /var/lib/check_mk_agent/spool/ and this is included in the agent output if we run the agent manually:

<<<job>>>
0 my_service - All is OK

However it the cmk server says the data is missing. Even when I run a full rediscover the service does not show up, service overview says it’s vanished.

Did something change on the expected data format in 2.1?

This looks like a local check line but you are using the job section.

Agree, but it seems a bug in the check_mk agent then because I am not telling it to include this in the job section :face_with_raised_eyebrow:

Did some more checking. I had an empty dir /var/lib/check_mk_agent/job. After removing that dir, my local file output is now included under <<<fileinfo>>> in the agent output. So it seems kind of random where it ends up.

I think this is definitely a bug in the agent. I think that the run_spooler section should echo <<<local>>>, or the agent should run run_spooler inside run_local_checks.

Your spool file has to start with a section header. You should write <<<local>>> in it first.

A spool file can contain any agent data section, not only local checks.

1 Like

Aha, that kind of makes sense. I think we were lucky then that with all previous check_mk versions it was included under <<local>>> anyway.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.