Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Import Macro Repair

...

The factory defaults are set in the file ~/lib/python(3)/cmk/gui/plugins/config/base.py. As this file is located below the ~/lib path, it might be changed during an "omd update", so it is not recommended to change this file. But many of the settings defined there can also be set in a file below the ~/local path. The exact path differs based on the Checkmk version.


  1. Get the factory defaults from the original file, for example:

    Code Block
    languagebash
    themeRDark
    title~/lib/python3/cmk/gui/plugins/config/base.py
    # Default timestamp format to be used in multisite
    default_ts_format = 'mixed'

    .

  2. Create a file below ~/local/share/check_mk/web/plugins/config and define your preferred default setting, for example:

    Code Block
    languagebash
    themeRDark
    title~/local/share/check_mk/web/plugins/config/my_base.py
    # We prefer to se both, the absolute and the relative time
    default_ts_format = 'both'

    .

  3. After doing an "omd restart apache", you will find this setting in your GUI:

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ omd restart apache


Image Modified

.

Note
The views for which you already explicitly have set the Time stamp format will not be changed because the settings in your personal config files below ~/var/check_mk/web/<username> are overriding the default settings.

Example 2: Default Sidebar Snapins

...