Upgrade CheckMK 1.6 to 2.0

Hi,

I would like to port my production environment from 1.6 to 2.0. using 3 virtualized hosts with one master and two slaves I’m following the procedure given in the wiki.

  • Stop all instances.
  • Execute the updates.
  • Start the updated instances again.

I am experiencing some anomalies.

  • Master
2022-03-16 10:12:08 - Updating site 'cmkdc' from version 1.6.0p27.cee to 2.0.0p21.cee...

Creating temporary filesystem /omd/sites/cmkdc/tmp...OK
Executing update-pre-hooks script "01_mkp-disable-outdated"...OK
Executing update-pre-hooks script "02_cmk-update-config"...
-| Initializing application...
-| Loading GUI plugins...
-| remove flag /omd/sites/cmkdc/etc/check_mk/conf.d/fs_cap.mk
-| Updating Checkmk configuration...
-| ATTENTION: Some steps may take a long time depending on your installation, e.g. during major upgrades.
-|  1/16 Migrate dashlets...
-|  2/16 Update global settings...
-| Replacing config with notification_spooler_config
-| Replacing cmc_cmk_helpers with cmc_fetcher_helpers
-| Replacing config with notification_spooler_config
-| Replacing config with notification_spooler_config
-|  3/16 Rewriting WATO tags...
-|  4/16 Rewriting WATO hosts and folders...
-|  5/16 Rewriting WATO rulesets...
-| Extracting excluded SNMP sections
-| Replacing ruleset non_inline_snmp_hosts with snmp_backend_hosts
-|  6/16 Rewriting autochecks...
-|  7/16 Cleanup version specific caches...
-|  8/16 Migrating fs_used name...
-| /omd/sites/cmkdc/lib/python3/cmk/update_config.py:575: FutureWarning: Possible nested set at position 9
-|   re.compile(regex)
-|  9/16 Migrate pagetype topics...
-|  10/16 Migrate LDAP connections...
-|  11/16 Rewrite BI Configuration...
-| Skipping conversion of bi.mk (already done)
-|  12/16 Set version specific user attributes...
-|  13/16 Rewriting inventory data...
-| Skipping path '/omd/sites/cmkdc/var/check_mk/inventory_archive' (empty)
-| Skipping path '/omd/sites/cmkdc/tmp/check_mk/status_data' (empty)
-| Finished checking for corrupt files
-| Creating file '/omd/sites/cmkdc/var/check_mk/update_config/py2conversion.done'
-|  14/16 Migrate audit log...
-| New audit log already existing. Skipping.
-|  15/16 Sanitize audit log (Werk #13330)...
-| Wrote audit log backup to /omd/sites/cmkdc/audit_log_backup. Please check if the audit log in the GUI works as expected. In case of problems you can copy the backup files back to /omd/sites/cmkdc/var/check_mk/wato/log. Please check the corresponding files in /omd/sites/cmkdc/var/check_mk/wato/log for any leftover passwords and remove them if necessary. If everything works as expected you can remove the backup. For further details please have a look at Werk #13330.
-| Sanitizing log files: /omd/sites/cmkdc/var/check_mk/wato/log/wato_audit.log
-| Finished sanitizing log files
-| Wrote sanitization flag file /omd/sites/cmkdc/var/check_mk/wato/log/.werk-13330
-|  16/16 Rename discovered host label files...
-| Done
OK
Updating core configuration...
Generating configuration for core (type cmc)...Creating helper config...OK
OK
Finished update.
  • Slave01
2022-03-16 10:11:33 - Updating site 'cmkdc_slave01' from version 1.6.0p27.cee to 2.0.0p21.cee...

Creating temporary filesystem /omd/sites/cmkdc_slave01/tmp...OK
Executing update-pre-hooks script "01_mkp-disable-outdated"...OK
Executing update-pre-hooks script "02_cmk-update-config"...
-| Initializing application...
-| Loading GUI plugins...
-| remove flag /omd/sites/cmkdc_slave01/etc/check_mk/conf.d/fs_cap.mk
-| Updating Checkmk configuration...
-| ATTENTION: Some steps may take a long time depending on your installation, e.g. during major upgrades.
-|  1/16 Migrate dashlets...
-|  2/16 Update global settings...
-| Replacing config with notification_spooler_config
-| Replacing cmc_cmk_helpers with cmc_fetcher_helpers
-|  3/16 Rewriting WATO tags...
-|  4/16 Rewriting WATO hosts and folders...
-|  5/16 Rewriting WATO rulesets...
-| Extracting excluded SNMP sections
-| Replacing ruleset non_inline_snmp_hosts with snmp_backend_hosts
-|  6/16 Rewriting autochecks...
-|  7/16 Cleanup version specific caches...
-|  8/16 Migrating fs_used name...
-| /omd/sites/cmkdc_slave01/lib/python3/cmk/update_config.py:575: FutureWarning: Possible nested set at position 9
-|   re.compile(regex)
-|  9/16 Migrate pagetype topics...
-|  10/16 Migrate LDAP connections...
-|  11/16 Rewrite BI Configuration...
-| Skipping conversion of bi.mk (already done)
-|  12/16 Set version specific user attributes...
-|  13/16 Rewriting inventory data...
-| Skipping path '/omd/sites/cmkdc_slave01/var/check_mk/inventory_archive' (empty)
-| Skipping path '/omd/sites/cmkdc_slave01/tmp/check_mk/status_data' (empty)
-| Finished checking for corrupt files
-| Creating file '/omd/sites/cmkdc_slave01/var/check_mk/update_config/py2conversion.done'
-|  14/16 Migrate audit log...
-| New audit log already existing. Skipping.
-|  15/16 Sanitize audit log (Werk #13330)...
-| Wrote audit log backup to /omd/sites/cmkdc_slave01/audit_log_backup. Please check if the audit log in the GUI works as expected. In case of problems you can copy the backup files back to /omd/sites/cmkdc_slave01/var/check_mk/wato/log. Please check the corresponding files in /omd/sites/cmkdc_slave01/var/check_mk/wato/log for any leftover passwords and remove them if necessary. If everything works as expected you can remove the backup. For further details please have a look at Werk #13330.
-| Sanitizing log files: /omd/sites/cmkdc_slave01/var/check_mk/wato/log/wato_audit.log
-| Finished sanitizing log files
-| Wrote sanitization flag file /omd/sites/cmkdc_slave01/var/check_mk/wato/log/.werk-13330
-|  16/16 Rename discovered host label files...
-| Done
OK
Updating core configuration...
Generating configuration for core (type cmc)...Creating helper config...OK
/omd/sites/cmkdc_slave01/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)
/omd/sites/cmkdc_slave01/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)
/omd/sites/cmkdc_slave01/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)

OK
Finished update.
  • Slave02
2022-03-16 10:09:15 - Updating site 'cmkdc_slave02' from version 1.6.0p27.cee to 2.0.0p21.cee...


Creating temporary filesystem /omd/sites/cmkdc_slave02/tmp...OK
Executing update-pre-hooks script "01_mkp-disable-outdated"...OK
Executing update-pre-hooks script "02_cmk-update-config"...
-| Initializing application...
-| Loading GUI plugins...
-| remove flag /omd/sites/cmkdc_slave02/etc/check_mk/conf.d/fs_cap.mk
-| Updating Checkmk configuration...
-| ATTENTION: Some steps may take a long time depending on your installation, e.g. during major upgrades.
-|  1/16 Migrate dashlets...
-|  2/16 Update global settings...
-| Replacing config with notification_spooler_config
-| Replacing cmc_cmk_helpers with cmc_fetcher_helpers
-|  3/16 Rewriting WATO tags...
-|  4/16 Rewriting WATO hosts and folders...
-|  5/16 Rewriting WATO rulesets...
-| Extracting excluded SNMP sections
-| Replacing ruleset non_inline_snmp_hosts with snmp_backend_hosts
-|  6/16 Rewriting autochecks...
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'AL00-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/AL00-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'B702-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/B702-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A800-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A800-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'DA01-SW02' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/DA01-SW02.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A202-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A202-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A615-SW03' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A615-SW03.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| If you encounter this error during the update process you need to replace the the variable by its actual value, e.g. replace `my_custom_levels` by `{'levels': (23, 42)}`.
-| Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A615-SW04' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A615-SW04.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-| Failed to rewrite autochecks file for hosts: AL00-SW01, B702-SW01, A800-SW01, DA01-SW02, A202-SW01, A615-SW03
-|  + "Rewriting autochecks" failed
-| Traceback (most recent call last):
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_config.py", line 157, in run
-|     step_func()
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_config.py", line 294, in _rewrite_autochecks
-|     raise MKGeneralException(msg)
-| cmk.utils.exceptions.MKGeneralException: Failed to rewrite autochecks file for hosts: AL00-SW01, B702-SW01, A800-SW01, DA01-SW02, A202-SW01, A615-SW03
-|  7/16 Cleanup version specific caches...
-|  8/16 Migrating fs_used name...
-| /omd/sites/cmkdc_slave02/lib/python3/cmk/update_config.py:575: FutureWarning: Possible nested set at position 9
-|   re.compile(regex)
-|  + "Migrating fs_used name" failed
-| Traceback (most recent call last):
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
-|     return eval(raw_file_content, check_variables or {}, check_variables or {})
-|   File "<string>", line 7, in <module>
-| NameError: name 'cisco_poe_default_levels' is not defined
-|
-| During handling of the above exception, another exception occurred:
-|
-| Traceback (most recent call last):
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_config.py", line 157, in run
-|     step_func()
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_config.py", line 197, in _update_fs_used_name
-|     cmk.update_rrd_fs_names.update()
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_rrd_fs_names.py", line 186, in update
-|     update_service_info(config_cache, get_hostnames(config_cache))
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/update_rrd_fs_names.py", line 167, in update_service_info
-|     for service in cmk.base.autochecks.parse_autochecks_file(
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 242, in parse_autochecks_file
-|     raw_autochecks = _load_raw_autochecks(
-|   File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
-|     raise MKGeneralException(
-| cmk.utils.exceptions.MKGeneralException: Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'D100-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/D100-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
-|  9/16 Migrate pagetype topics...
-|  10/16 Migrate LDAP connections...
-|  11/16 Rewrite BI Configuration...
-| Skipping conversion of bi.mk (already done)
-|  12/16 Set version specific user attributes...
-|  13/16 Rewriting inventory data...
-| Skipping path '/omd/sites/cmkdc_slave02/var/check_mk/inventory' (empty)
-| Skipping path '/omd/sites/cmkdc_slave02/var/check_mk/inventory_archive' (empty)
-| Skipping path '/omd/sites/cmkdc_slave02/tmp/check_mk/status_data' (empty)
-| Finished checking for corrupt files
-| Creating file '/omd/sites/cmkdc_slave02/var/check_mk/update_config/py2conversion.done'
-|  14/16 Migrate audit log...
-| New audit log already existing. Skipping.
-|  15/16 Sanitize audit log (Werk #13330)...
-| Wrote audit log backup to /omd/sites/cmkdc_slave02/audit_log_backup. Please check if the audit log in the GUI works as expected. In case of problems you can copy the backup files back to /omd/sites/cmkdc_slave02/var/check_mk/wato/log. Please check the corresponding files in /omd/sites/cmkdc_slave02/var/check_mk/wato/log for any leftover passwords and remove them if necessary. If everything works as expected you can remove the backup. For further details please have a look at Werk #13330.
-| Sanitizing log files: /omd/sites/cmkdc_slave02/var/check_mk/wato/log/wato_audit.log
-| Finished sanitizing log files
-| Wrote sanitization flag file /omd/sites/cmkdc_slave02/var/check_mk/wato/log/.werk-13330
-|  16/16 Rename discovered host label files...
-| Done
ERROR (exit code: 1)
Updating core configuration...
Generating configuration for core (type cmc)...Creating helper config...OK
/omd/sites/cmkdc_slave02/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)
/omd/sites/cmkdc_slave02/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)
/omd/sites/cmkdc_slave02/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15
  reg = re.compile(pattern, flags=flags)
Error in file /omd/sites/cmkdc_slave02/var/check_mk/autochecks/F800-SW04.mk:
Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'F800-SW04' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/F800-SW04.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
    return eval(raw_file_content, check_variables or {}, check_variables or {})
  File "<string>", line 6, in <module>
NameError: name 'cisco_poe_default_levels' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 140, in _read_raw_autochecks_uncached
    autochecks_raw = _load_raw_autochecks(
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
    raise MKGeneralException(
cmk.utils.exceptions.MKGeneralException: Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'F800-SW04' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/F800-SW04.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Error in file /omd/sites/cmkdc_slave02/var/check_mk/autochecks/A615-SW01.mk:
Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A615-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A615-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
    return eval(raw_file_content, check_variables or {}, check_variables or {})
  File "<string>", line 9, in <module>
NameError: name 'cisco_poe_default_levels' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 140, in _read_raw_autochecks_uncached
    autochecks_raw = _load_raw_autochecks(
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
    raise MKGeneralException(
cmk.utils.exceptions.MKGeneralException: Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'A615-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/A615-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Error in file /omd/sites/cmkdc_slave02/var/check_mk/autochecks/E202-SW01.mk:
Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'E202-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/E202-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
    return eval(raw_file_content, check_variables or {}, check_variables or {})
  File "<string>", line 9, in <module>
NameError: name 'cisco_poe_default_levels' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 140, in _read_raw_autochecks_uncached
    autochecks_raw = _load_raw_autochecks(
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
    raise MKGeneralException(
cmk.utils.exceptions.MKGeneralException: Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'E202-SW01' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/E202-SW01.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Error in file /omd/sites/cmkdc_slave02/var/check_mk/autochecks/C100-SW06.mk:
Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'C100-SW06' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/C100-SW06.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
    return eval(raw_file_content, check_variables or {}, check_variables or {})
  File "<string>", line 6, in <module>
NameError: name 'cisco_poe_default_levels' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 140, in _read_raw_autochecks_uncached
    autochecks_raw = _load_raw_autochecks(
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
    raise MKGeneralException(
cmk.utils.exceptions.MKGeneralException: Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'C100-SW06' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/C100-SW06.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Error in file /omd/sites/cmkdc_slave02/var/check_mk/autochecks/CD00-SW02.mk:
Name 'cisco_poe_default_levels' is not defined in an autocheck entry of host 'CD00-SW02' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/CD00-SW02.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 224, in _load_raw_autochecks
    return eval(raw_file_content, check_variables or {}, check_variables or {})
  File "<string>", line 6, in <module>
NameError: name 'cisco_poe_default_levels' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 140, in _read_raw_autochecks_uncached
    autochecks_raw = _load_raw_autochecks(
  File "/omd/sites/cmkdc_slave02/lib/python3/cmk/base/autochecks.py", line 226, in _load_raw_autochecks
    raise MKGeneralException(
cmk.utils.exceptions.MKGeneralException: Name 'cisco_oldcpu_default_levels' is not defined in an autocheck entry of host 'E002-SW03-1-EX' (/omd/sites/cmkdc_slave02/var/check_mk/autochecks/E002-SW03-1-EX.mk). This entry is in pre Checkmk 1.7 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 converting the old configuration.
OK
Finished update.

Some points are unclear to me, for example

  • Slave01 / Slave02

    • /omd/sites/cmkdc_slave01/lib/python3/cmk/update_config.py:575: FutureWarning: Possibile set annidato in posizione 9 -| re.compile(regex). ??
    • omd/sites/cmkdc_slave02/lib/python3/cmk/utils/regex.py:41: FutureWarning: Possible nested set at position 15 reg = re.compile(pattern, flags=flags) ??
  • Slave02

    • omd/sites/cmkdc_slave02/var/check_mk/autochecks/hostname.mk. by removing these files the problem is no more but what are these files used for? i could also remove in each file the line corresponding to that service. right?

Thx.
Dario.

Master & Slave01 looks ok for myself.
The regex warning you should investigate after the upgrade on the command line with something like “cmk --debug -vvU”. It is possible that you see a little bit more.

On Slave02 is is possible that there are some older self made checks are used?
Or packages from sources like the CMK exchange?
The error message only means that there are undefined default levels for the “cisco_poe” check exist.

thanks, very useful command cmk --debug -vvU so I can see where those errors originate.

Correct, I use some mkp that before the migration I better remove them in the files …/autochecks/hostname.mk are those lines that give problems cisco_poe for example I will remove them by hand via sad.

in the doc it is not clear how I can understand if I am using forecast graphs?

after migration i got into the problem Empty dashlets: Total host/service problems i am not clear what the problem is. in the master console i see the services and hosts that are monitored by the slaves.

Thx.
Dario.

I am experiencing a problem on the master 2.0 post migration it fills up the path /omd/site/cmkdc/tmp/check_mk/Wato/activation/ when I get to this point I get several errors. do you know what the cause is?

error view:

API Error:Cannot write configuration file “/omd/sites/cmkdc/tmp/check_mk/wato/activation/232e14b6-2dfb-44b9-9644-5b8bacc926bd/info.mk”: [Errno 28] No space left on device

thx.
Dario.

Your disk is full, mate. :wink:

1 Like

It looks like a problem with activating your sites. Remove the folders and try an activation on your sites.
If there is a folder left again you should have also some error messages in the log files.

1 Like

To be more precise: the site’s tmpfs on ~/tmp

disabling/enabling the site should unmount/mount the tmpfs thus clearing it.
But perhaps first have a look what’s filling it up.

1 Like

@SAMDAR
I had the same issue with the changes filling up the tmp partition in version 2.0.0p21
See this werk for more information

After I updated to p22, the issue almost never occurs anymore.
Additionally I added a monitoring check for my master server to notify me when it occurs again.

I used this plugin to monitor the directory and configured it to warn/crit at 1GB/1.5GB.
Directory to monitor: /opt/omd/sites/SITENAME/tmp/check_mk/wato/activation/

1 Like