BUG: Logwatch_groups Icon missing - problems even after werk 12417

I applied werk 12417 manually (<tt>logwatch_groups</tt>: Fix discovery) to add logwatch_groups to discovery again, but I don’t think this has been properly tested since now, although logwatch groups are being discovered, the “View log” option doesn’t show up for them. I’m still able to view/clean logs by manually entering the proper URL.

How could I proceed to avoid 2.0.0p2 being pushed without a proper (and easy) fix for logwatch_groups?

Just a reminder that this bug is still here in 2.0.0p3 as expected. No “Open log” option.

image

Is anyone else having that same bug or is it just me?

Yes this problem is not solved until now.
There is a easy workaround.
File: “~/lib/python3/cmk/gui/plugins/views/icons/builtin.py” line 533

Original

def render(self, what, row, tags, custom_vars):
    if what != "service" or row[what + "_check_command"] not in [
            'check_mk-logwatch',
            'check_mk-logwatch.groups',
    ]:
        return

Extend to

def render(self, what, row, tags, custom_vars):
    if what != "service" or row[what + "_check_command"] not in [
            'check_mk-logwatch',
            'check_mk-logwatch.groups',
            'check_mk-logwatch_groups',
    ]:
        return

It works (after restarting the site).
Considering it’s a 1 minute fix, I hope it makes its way into p4.

Pull request is made :slight_smile:

You got it! hehe thanks again.