Module: check_mk
Branch: master
Commit: e2cbff59c2ad4e549f7be417f8d10d58cf360c11
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2cbff59c2ad4e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 12:18:06 2015 +0100
#1973 Added intelligent host and service type icons to default views
The default list views of hosts and services show a new column, the
type icon, by default now.
The rendered icon is some kind of intelligent icon. It tries to detect
which icon has to be shown for each host or service. This is done
automatically based on the available information, for example which
services are configured for a host or what is the name of a service.
The currently implemented auto detection is far from being complete.
It only contains some examples to show the new possibilites. This can
be extended using icon plugins. For details take a look at the default
<tt>plugins/icons/builtin.py</tt> code.
If you like to change / override the icon by hand, you can configure the
already existing rulesets "Icon image for hosts in status GUI" and
"Icon image for services in status GUI".
You can choose from the PNG icons available in <tt>htdocs/images/icons</tt>.
If you use OMD, the default files are located in
<tt>share/check_mk/web/htdocs/images/icons</tt>.
You can place your own files in
<tt>local/share/check_mk/web/htdocs/images/icons</tt>.
---
.werks/1973 | 28 +++++++++
ChangeLog | 1 +
web/htdocs/images/icons/checkmk.png | Bin 0 -> 2062 bytes
web/htdocs/images/icons/cisco.png | Bin 0 -> 1271 bytes
web/htdocs/images/icons/cpu.png | Bin 0 -> 4356 bytes
web/htdocs/images/icons/disk_io.png | Bin 0 -> 2721 bytes
web/htdocs/images/icons/filesystem.png | Bin 0 -> 2207 bytes
web/htdocs/images/icons/interface.png | Bin 0 -> 3830 bytes
web/htdocs/images/icons/linux.png | Bin 0 -> 2878 bytes
web/htdocs/images/icons/log.png | Bin 0 -> 4030 bytes
web/htdocs/images/icons/mail_queue.png | Bin 0 -> 4924 bytes
web/htdocs/images/icons/mount.png | Bin 0 -> 3637 bytes
web/htdocs/images/icons/temperature.png | Bin 0 -> 5061 bytes
web/htdocs/images/icons/time.png | Bin 0 -> 5063 bytes
web/htdocs/images/icons/uptime.png | Bin 0 -> 3592 bytes
web/htdocs/images/icons/windows.png | Bin 0 -> 812 bytes
web/htdocs/status.css | 4 ++
web/plugins/icons/builtin.py | 101 +++++++++++++++++++++++++------
web/plugins/views/builtin.py | 80 ++++++------------------
web/plugins/views/painters.py | 67 +++++++++++++++++---
20 files changed, 195 insertions(+), 86 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e2cbff59c2…