Unexpected behavior of “update discovery parameters” after upgrade to 2.4.0p10

CMK version: 2.4.0p10
OS version: Debian 12

Hi everyone,

I have just upgraded Checkmk from 2.3.0p34 to 2.4.0p10.

While running discovery on several hosts, I noticed that in the Changed services section the discovery parameters that had changed were listed. I selected some of them and executed Host → Update discovery parameters from the GUI (WATO → Host).

To my surprise, Checkmk not only updated the parameters for the services I had selected, but it also applied the changes to all changed services and, more importantly, it automatically inventoried all the Undecided services that had already been present before.

My question is:

  • is this a bug introduced in 2.4, or is this the intended logic of the new functionality?

Has anyone else experienced the same behavior?

Thanks!

CMK version: 2.4.0p15
OS version: Alma Linux 9

Yes, this does seem like a bug.
I used Bulk discovery in Checkmk 2.4.0p15 with Custom service configuration and thousands of services got removed:

There were no vanished services reported by the Check_MK Discovery service before executing the bulk discovery.
I tried reverting these changes, but the discovery still removed all services from a large number of hosts:

Hosts: 274 total (226 succeeded, 44 skipped, 4 failed)
Host labels: 640 total (6 added)
Services: 1125 total (0 added, 7535 removed, 1125 kept)
Bulk discovery successful

I don’t think this is supposed to happen, is it?

CMK version: 2.4.0p15
OS version: RHEL 8

This seems to be a bug. We can also reproduce this.

Bulk Discovery, for testing only with one host:

Services are not vanished and should not be removed - but all services of the Host are removed:

Hi @Sara

As Thomas just posted, we have a somewhat more critical bug here. Could you possibly place the issue internally so that someone can look into it promptly? We will also escalate the issue via our Checkmk partner. Many thanks :slight_smile:

Christian

1 Like

Hi Christian!

Thank you for first contacting through the official support route :folded_hands:
I will try to get more information on this and will let you know.

2 Likes

I can confirm also this problem. It also happened on one or two of my updates.
I had only no time to investigate further. The only “fix” was to do a complete discovery over all hosts after the initial only update the service parameters.

1 Like

We already got the ticket and I believe this was already reproduced. I will keep you all updated here on the changes :+1:

3 Likes

Hi everyone,

this problem occurred only when both options to update service labels and parameters were checked.

The fix will be rolled out with the next patch release: Werk #18348: Removed services during bulk discovery

Have a nice day, Andi

1 Like

The speeling inside the werk got a little bit wrong :wink:

When both options "Update service parameters" and "Update service parameters" were selected for a bulk discovery, all services were removed from all selected hosts.
1 Like

The speeling inside the werk got a little bit wrong

So much for human and AI review of the text :joy:

I’ll fix that up right away

2 Likes