Module: check_mk
Branch: master
Commit: e9dc63617e3f8dbc6d809e17fa87097bb415bf78
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9dc63617e3f8d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 9 17:07:21 2015 +0100
Added icons for new acknowledgment event in monitoring log
---
web/htdocs/images/alert_ack.png | Bin 0 -> 3881 bytes
web/htdocs/images/alert_ackstop.png | Bin 0 -> 3985 bytes
web/plugins/views/painters.py | 5 +++++
3 files changed, 5 insertions(+)
diff --git a/web/htdocs/images/alert_ack.png b/web/htdocs/images/alert_ack.png
new file mode 100644
index 0000000..7bee2d7
Binary files /dev/null and b/web/htdocs/images/alert_ack.png differ
diff --git a/web/htdocs/images/alert_ackstop.png b/web/htdocs/images/alert_ackstop.png
new file mode 100644
index 0000000..a84d268
Binary files /dev/null and b/web/htdocs/images/alert_ackstop.png differ
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 76cf45d..a155e3e 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1825,6 +1825,11 @@ def paint_log_icon(row):
img = "stop"
elif " FLAPPING " in log_type:
img = "flapping"
+ elif "ACKNOWLEDGE ALERT" in log_type:
+ if row["log_state_type"] == "STARTED":
+ img = "ack"
+ else:
+ img = "ackstop"
if img:
return "icon", '<img class=icon
src="images/alert_%s.png">' % img