Fixed global color with max severity alert
This commit is contained in:
parent
a09bf88007
commit
3d22043881
@ -55,7 +55,7 @@ class Zabbix(IntervalModule):
|
|||||||
|
|
||||||
cdict["default"] = "{0}:{a[5]}/{a[4]}/{a[3]}/{a[2]}/{a[1]}/{a[0]}".format(sum(alerts), a=alerts)
|
cdict["default"] = "{0}:{a[5]}/{a[4]}/{a[3]}/{a[2]}/{a[1]}/{a[0]}".format(sum(alerts), a=alerts)
|
||||||
cdict["total"] = sum(alerts)
|
cdict["total"] = sum(alerts)
|
||||||
color = alerts_color[max(alerts)]
|
color = alerts_color[max(map(int, alerts_list))]
|
||||||
result = self.format.format(**cdict)
|
result = self.format.format(**cdict)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user