This line shows the problem - normally you should only see the next line with “check-mk-notify” contact.
The “user1” is a old user and has leftovers inside his configuration file that should not be there now.
These old parts of the configuration belong to the old notification system before the rule based notifications.
A possible solution should be recreating this user.
Or manually modify the user config file.
OK, I will try to delete and recreate the user. In case this will work this would be a workarround for small installations with few users only. For greater systems the update of the config file may be the “smarter” way.
Which file have to be updated - and what have to be updated?
Thanks in advance
The file is
~/etc/check_mk/conf.d/wato/contacts.mk
What needs to be removed depends on the single user.
I would recommend to create a new user and have a look at all the attributes included and then compare the data structure with an old user to see what is needed at the actual version.
Ok,
I have now removed follwoing parts (if exists) in “contacts.mk” for each user:
'host_notification_commands': 'check-mk-notify',
'host_notification_options': 'durfs',
'service_notification_commands': 'check-mk-notify',
'service_notification_options': 'wucrfs',
'notification_method': ('flexible', [{'parameters': [], 'plugin': 'mail', 'disabled': False, 'service_events': ['w', 'u', 'c'], 'timeperiod': '24X7', 'host_events': ['d', 'u']}]),
'notifications_enabled': True,
'notifications_enabled': False,
'notification_method': 'email',
'notification_period': '24X7',
'force_authuser_webservice': False,
(Maybe the values are not the same for all users.)
I have done following sequence: STOP checkmk > update file > START checkmk again.
Actual it seems to work fine!
The found values are valid i think. I had some users only with 3 or 4 of these set and other with all like in your example.
from Users may disable notifications by accident after upgrading to 1.5.0
In the file all values for the key “disable_notifications” have to be modified. The old value “True” has to be replaced by the dictionary “{‘disable’: True}” and the old value “False” has to be replaced by the empty dictionary “{}”.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.