Computer and IT knowledge - things to know
if you generate a notification and watch the notification log file:
OMD[SITE]:~$ tail -f ./var/log/notify.log
you see problems / errors:
2024-01-26 16:40:14,807 [10] [cmk.base.notify] Found 0 user specific rules
2024-01-26 16:40:14,807 [20] [cmk.base.notify] Global rule 'Notify all contacts of a host/service via HTML email'...
2024-01-26 16:40:14,807 [20] [cmk.base.notify] -> matches!
2024-01-26 16:40:14,807 [40] [cmk.base.notify] ERROR:
Traceback (most recent call last):
File "/omd/sites/SITE/lib/python3/cmk/base/notify.py", line 352, in locally_deliver_raw_context
return notify_rulebased(raw_context, analyse=analyse)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/SITE/lib/python3/cmk/base/notify.py", line 444, in notify_rulebased
notifications, rule_info = _create_notifications(
^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/SITE/lib/python3/cmk/base/notify.py", line 465, in _create_notifications
contacts = rbn_rule_contacts(rule, raw_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/SITE/lib/python3/cmk/base/notify.py", line 968, in rbn_rule_contacts
if disable_notifications_opts.get("disable", False):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'get'
similar problems:
- https://forum.checkmk.com/t/notification-problems-since-upgrade-to-2-2-0p3-cre/39379
- https://forum.checkmk.com/t/trouble-with-notifications-in-2-2-0-cre/39120/3
---------
solution:
---------
new format of user attributes .. after I edited all users (in my case only about 5) and commited
the changes the errors from above disappeared
>> problems comes probably from upgrading from an old version, if you directly install 2.2.0 you probably will not have the problem ;-))
computer2know :: thank you for your visit :: have a nice day :: © 2024