...
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.
Get the factory defaults from the original file, for example:
Code Block language bash theme RDark title ~/lib/python3/cmk/gui/plugins/config/base.py # Default timestamp format to be used in multisite default_ts_format = 'mixed'
.
Create a file below ~/local/share/check_mk/web/plugins/config and define your preferred default setting, for example:
Code Block language bash theme RDark 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'
.
After doing an "omd restart apache", you will find this setting in your GUI:
Code Block language bash theme RDark OMD[mysite]:~$ omd restart apache
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
...