[Check_mk (english)] Add custom icon/link to (Host) Screens?
ralph.bolton at calltracks.com
Fri Jul 1 19:04:42 CEST 2016
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
# 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)
'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...
More information about the checkmk-en