K8s Namespace excluding in CheckMK 2.4.0p2

I have certain namespace excluded not to monitor but that is not working anymore in 2.4p2.
Is there another way to do that ?
I follwed the documentation and also installed 1.7.0 on a cluster but still I have all namespaces, but I want to exclude namespaces.

hope someone has an answer to this.

Do you mean it worked for you in previous Checkmk versions and doesn’t work in 2.4.0p2?

correct. Excluding worked perfect, even with wildcard-characters but now in this version its not working anymore.
I tested both options;

  • Monitor namespaces matching;
    • Name space i gave was only monitord.
  • Exclude namespaces matching:
    • Namespace I gave is still monitord including all other namespaces

Thanks for reporting it. I can reproduce it in the 2.4.latest.
Based on my findings, the special agent rule to exclude a particular namespace doesn’t include the following command line argument:

–namespace-exclude-patterns ‘^thenamespace I want to exclude’

which seems to be the problem. Adding it manually on the command line still works. I have opened an internal ticket and will keep you posted.

what can I do for a quick work-around because now I am out of licenses :slight_smile:

Have you tried calling the special agent from the command line directly ? Does it give you expected results ?

Hi team,

We’re running into the same bug with namespace exclusions not working. Using the CLI every time isn’t really practical for us since we have to make changes pretty often.

Do you know if there’s a fix planned, or when it might be available? That would really help us out.

There is already an internal ticket on this problem. We will keep you posted.

1 Like

Regarding werk #18128

Adding multiple namespaces is still not working. You can only specify 1 namespace but we want to exclude more namespaces.

Tested also including namespaces but also than, 1 namespace is only valid.

More then 1 is resulting in an ‘unrecognized argument’

hello, i have the same problem
i found that

now i’m waiting to release

yes found that and also waiting. Unfortunatly for a while now because i mentioned this issues when 2.4.0p2 was released and its still not completly fixed. Now I can exclude 1 namespace :frowning:

hope p11 is released asap