Error running automation call notification-analyse (invalid syntax)

Hi!

I use CMK 2.0.0p1 on Debian 9.

When i try to analyze notifications i get the following exception. Any ideas on how to solve this?

Best Regards,
David

Loading autochecks from /omd/sites/MASTER/var/check_mk/autochecks/tc-mgmt1.jacoby-gm.at.mk ([(u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'HighPrioKL'], u'contact_object': False, u'description': u'HighPrioKL', u'disabled': False, u'docu_url': u'', u'match_folder': u'kl', u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'mail', {})}, u"The rule requires WATO folder 'kl', but the host is in 'br/braunau/infrakstruktur'"), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'Temp-Warning-HO'], u'contact_object': False, u'description': u'TempWarningHO', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'Temp-Warning-HO'], u'match_folder': u'ho/temperatur_sensoren', u'match_hostgroups': [u'TempSensorenHO'], u'match_hosttags': [u'criticaltemp'], u'notify_plugin': (u'mail', {})}, u"The rule requires WATO folder 'ho/temperatur_sensoren', but the host is in 'br/braunau/infrakstruktur'"), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'Temp-Warning-KL'], u'contact_object': False, u'description': u'TempWarning KL', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'Temp-Warning-KL'], u'match_hostgroups': [u'TempSensorsKL'], u'match_hosttags': [u'criticaltemp'], u'notify_plugin': (u'mail', {})}, u"The host's tags /wato/br/braunau/infrakstruktur/|0|auto-piggyback|cmk-agent|critical|default|dev_other|edv_br|ip-v4|ip-v4-only|lan|maintenance_disabled|no-snmp|site:MASTER|tcp|y|yes do not match the required tags criticaltemp"), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'USV-KL'], u'contact_object': False, u'description': u'USV KL', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'USV-KL'], u'match_folder': u'kl/usv', u'notify_plugin': (u'mail', {})}, u"The rule requires WATO folder 'kl/usv', but the host is in 'br/braunau/infrakstruktur'"), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'Temp-Warning-Hallein'], u'contact_object': False, u'description': u'TempWarning HA', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'Temp-Warning-Hallein'], u'match_hostgroups': [u'TempSensors'], u'match_hosttags': [u'criticaltemp'], u'notify_plugin': (u'mail', {})}, u"The host's tags /wato/br/braunau/infrakstruktur/|0|auto-piggyback|cmk-agent|critical|default|dev_other|edv_br|ip-v4|ip-v4-only|lan|maintenance_disabled|no-snmp|site:MASTER|tcp|y|yes do not match the required tags criticaltemp"), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'SMS-EDV'], u'contact_object': False, u'description': u'SMS-ALL', u'disabled': True, u'docu_url': u'', u'match_contactgroups': [u'SMS-EDV'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'asciimail', {})}, u'This rule is disabled'), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'SMS-EDV-HA'], u'contact_object': False, u'description': u'SMS-HA', u'disabled': True, u'docu_url': u'', u'match_contactgroups': [u'SMS-EDV-HA'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'asciimail', {})}, u'This rule is disabled'), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'SMS-EDV-BR'], u'contact_object': False, u'description': u'SMS-BR', u'disabled': True, u'docu_url': u'', u'match_contactgroups': [u'SMS-EDV-BR'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'asciimail', {})}, u'This rule is disabled'), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'SMS-EDV-IBK'], u'contact_object': False, u'description': u'SMS-IBK', u'disabled': True, u'docu_url': u'', u'match_contactgroups': [u'SMS-EDV-IBK'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'asciimail', {})}, u'This rule is disabled'), (u'miss', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_object': False, u'contact_users': [u'ticketsystem'], u'description': u'Zammad - Service Notification', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'Ticketsystem'], u'match_folder': u'', u'match_host_event': [u'rd', u'ru', u'dr', u'du', u'ud', u'ur'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'zammad-host', [])}, u'This is a service notification, but the rule just matches host events'), (u'match', {u'allow_disable': True, u'comment': u'', u'contact_all': False, u'contact_all_with_email': False, u'contact_groups': [u'Ticketsystem'], u'contact_object': False, u'description': u'Zammad - Service Notification', u'disabled': False, u'docu_url': u'', u'match_contactgroups': [u'Ticketsystem'], u'match_service_event': [u'rw', u'rr', u'rc', u'ru', u'wr', u'wc', u'wu', u'cr', u'cw', u'cu', u'uw', u'uc'], u'match_timeperiod': u'MonitoringTime', u'notify_plugin': (u'zammad-service', [])}, u'')], [(u'ticketsystem', u'zammad-service', [], None)])

: invalid syntax (<unknown>, line 1)

Habe es rausgefunden. Hostsystem hat python 3 als default genutzt… ist somit erledigt!

Kannst du das etwas weiter ausführen? Ich habe den gleichen Fehler, verstehe aber nicht, was das mit Python 3 zu tun hat.

Hi eggerd, I am facing the same issue. Could you please describe how you were able to resolve it?

Thanks
Tom

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.