[Check_mk (english)] Add custom icon/link to (Host) Screens?

Ralph Bolton ralph.bolton at calltracks.com
Fri Jul 1 19:04:42 CEST 2016

Hi All,

I'm trying to follow
https://mathias-kettner.de/checkmk_devel_multisite_icons.html to put a
custom icon onto the 'Services of <host>' screens (in particular). There's
a column called 'icons' on that screen, so ideally I'd add to that.

So far, I've taken the example from the page above and changed almost
nothing (yet):

# encoding: utf-8

def paint_confluence_icon(what, row, tags, custom_vars):
    if what == 'service' and row['service_description'].startswith('mysql'):
        url = 'http://%s/' % row['host_address']
        return u'<a href="%s" title="Webinterface">' \
               '<img class=icon src="images/icon_www.png"/></a>' % (url)

    'paint':           paint_confluence_icon,
    'host_columns':    [ 'address' ],
    'service_columns': [ 'host_address' ],

...I've put it into
/omd/sites/checkmk/local/share/check_mk/web/plugins/icons (which is
local/share/check_mk/web/plugins/icons/ for my checkmk user), and called
the file 'confluence.py'.

I can't seem to get it to do anything at all. In desperation, I've put
garbage in the file, I've also tried putting the file alongside the distro
plugins (eg. builtin.py), and still nothing.

I've looked in all the logs in local/var/log/*, and see nothing about it
anywhere. I can't figure out if it needs a "cmk -R" to have changes take
effect or not, so I've tried that quite a bit, just in case. I'm guessing
I'm missing something super-obvious, but I can't figure out what it might
be. Anyone got any ideas?

Thanks very much,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20160701/29722cbe/attachment-0001.html>

More information about the checkmk-en mailing list