Skip to content
Browse files

Improve error message in case of incompatible autochecks

Change-Id: I9a561b0f84d51b2d8600223217c95b0fb5a1dfb5
  • Loading branch information...
LarsMichelsen committed Sep 11, 2019
1 parent 085b7b5 commit a51ff2877d52335e2114ca9d0c3f55f94385bcbf
Showing with 8 additions and 0 deletions.
  1. +8 −0 cmk_base/
@@ -162,6 +162,14 @@ def _read_raw_autochecks_of(self, hostname):
return result

for entry in autochecks_raw:
if isinstance(entry, tuple):
raise MKGeneralException(
"Invalid check entry '%r' of host '%s' (%s) found. This "
"entry is in pre Checkmk 1.6 format and needs to be converted. This is "
"normally done by \"cmk-update-config -v\" during \"omd update\". Please "
"execute \"cmk-update-config -v\" for convertig the old configuration." %
(entry, hostname, filepath))

labels = DiscoveredServiceLabels()
for label_id, label_value in entry["service_labels"].items():
labels.add_label(ServiceLabel(label_id, label_value))

0 comments on commit a51ff28

Please sign in to comment.
You can’t perform that action at this time.