1
0

envivio: Add support to ignore messages.

This commit is contained in:
Markus Birth 2017-11-24 14:31:45 +01:00
parent f8ce957f57
commit 5b7af87fea
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,6 @@
title = Ericsson Envivio 4Caster
author = Markus Birth
description = SNMP based checks for the Ericsson Envivio 4Caster encoder.
version = 2017.06.20.1
version = 2017.09.20.1
version.min_required = 1.2.8p2
download_url = https://github.com/mbirth/check_mk-plugins

View File

@ -17,6 +17,10 @@ def inventory_envivio_alarms(info):
def check_envivio_alarms(item, _no_params, info):
severities = [ "Info", "Critical", "Error", "Minor" ]
sev2omd = [ 0, 2, 1, 1 ]
ignore_labels = [
# "Input video still image",
# "Input audio silent"
]
status = 0
message = ""
@ -28,6 +32,8 @@ def check_envivio_alarms(item, _no_params, info):
details = details.replace("|", "/")
severity = saveint(severity)
omdsev = sev2omd[severity]
if label in ignore_labels:
omdsev = 0
if omdsev > status:
status = omdsev
if omdsev == maxsev: