Hallo zusammen,
wir sind gerade dabei von Nagios auf check_mk umzusteigen. Das Grundgerüst steht auch soweit, Hosts & Services sind größtenteils erfolgreich integriert - was noch fehlt sind die Notifications.
Check_MK generiert Notifikations, versendet sie aber nicht per Mail. Das notify.log steigt immer bei folgendem Punkt aus:
2020-08-06 09:11:37 Preparing rule based notifications
2020-08-06 09:11:37 Found 0 user specific rules
2020-08-06 09:11:37 Global rule 'Notify all contacts of a host/service via HTML email'...
2020-08-06 09:11:37 -> matches!
2020-08-06 09:11:37 - adding notification of contact1, contact2 via mail
2020-08-06 09:11:37 Executing 1 notifications:
2020-08-06 09:11:37 * notifying contact1, contact2 via mail, parameters: host_subject, from, service_subject, elements, bulk: no
2020-08-06 09:11:37 Creating spoolfile: /omd/sites/DUG_MON/var/check_mk/notify/spool/1c598a7e-ef75-48a2-9599-9f25a6b8e74e
2020-08-06 09:11:42 ----------------------------------------------------------------------
2020-08-06 09:11:42 Got spool file fcd8ad73 (netNAS2-s3;Check_MK) for local delivery via mail
2020-08-06 09:11:42 executing /omd/sites/DUG_MON/share/check_mk/notifications/mail
2020-08-06 09:11:42 ERROR 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1448, in handle_spoolfile
return call_notification_script(plugin, plugin_context)
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1339, in call_notification_script
env=notification_script_env(plugin_context),
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1389, in notification_script_env
{"NOTIFY_" + variable: format_(value) for variable, value in plugin_context.iteritems()})
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1389, in <dictcomp>
{"NOTIFY_" + variable: format_(value) for variable, value in plugin_context.iteritems()})
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1385, in format_
return value.encode("utf-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Im mknotify.log steigt er bei folgendem Punkt aus:
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1339, in call_notification_script
env=notification_script_env(plugin_context),
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1389, in notification_script_env
{"NOTIFY_" + variable: format_(value) for variable, value in plugin_context.iteritems()})
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1389, in <dictcomp>
{"NOTIFY_" + variable: format_(value) for variable, value in plugin_context.iteritems()})
File "/omd/sites/DUG_MON/lib/python/cmk_base/notify.py", line 1385, in format_
return value.encode("utf-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Testmails können erfolgreich vom System verschickt werden, hier liegt also kein Problem vor in der Konfiguration. Wir nutzen die virtualAppliance, Installation sollte also auch passen.
Vielleicht kann mir jemand bei diesem Thema behilflich sein
Viele Grüße
em