[checkmk-commits] Check_MK Git: check_mk: Added some more service type icons

Lars Michelsen lm at mathias-kettner.de
Mon Feb 2 13:59:10 CET 2015


Module: check_mk
Branch: master
Commit: 0cda8994df16dbe14d6327a62aaa06ef29c8cb2e
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0cda8994df16dbe14d6327a62aaa06ef29c8cb2e

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon Feb  2 13:59:07 2015 +0100

Added some more service type icons

---

 web/htdocs/images/icons/connections.png |  Bin 0 -> 2469 bytes
 web/htdocs/images/icons/events.png      |  Bin 0 -> 4609 bytes
 web/htdocs/images/icons/job.png         |  Bin 0 -> 3919 bytes
 web/htdocs/images/icons/kernel.png      |  Bin 0 -> 4436 bytes
 web/plugins/icons/builtin.py            |    8 ++++++++
 5 files changed, 8 insertions(+)

diff --git a/web/htdocs/images/icons/connections.png b/web/htdocs/images/icons/connections.png
new file mode 100644
index 0000000..d479c1b
Binary files /dev/null and b/web/htdocs/images/icons/connections.png differ
diff --git a/web/htdocs/images/icons/events.png b/web/htdocs/images/icons/events.png
new file mode 100644
index 0000000..fb5ca52
Binary files /dev/null and b/web/htdocs/images/icons/events.png differ
diff --git a/web/htdocs/images/icons/job.png b/web/htdocs/images/icons/job.png
new file mode 100644
index 0000000..22a9248
Binary files /dev/null and b/web/htdocs/images/icons/job.png differ
diff --git a/web/htdocs/images/icons/kernel.png b/web/htdocs/images/icons/kernel.png
new file mode 100644
index 0000000..ea7785e
Binary files /dev/null and b/web/htdocs/images/icons/kernel.png differ
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index bae451f..5f5eeea 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -663,8 +663,16 @@ def paint_basic_service_types(what, row, tags, custom_vars):
             return 'disk_io'
         elif svc_desc.startswith('Uptime'):
             return 'uptime'
+        elif svc_desc.startswith('Kernel'):
+            return 'kernel'
+        elif svc_desc.startswith('Events'):
+            return 'events'
+        elif svc_desc.startswith('TCP Connections'):
+            return 'connections'
         elif svc_desc.startswith('Postfix'):
             return 'mail_queue'
+        elif svc_desc.startswith('Job'):
+            return 'job'
         elif svc_desc.startswith('NTP') or svc_desc == 'System Time':
             return 'time'
 



More information about the checkmk-commits mailing list