Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
With this setting,

...

most

...

configuration files are pretty-printed and easier to read.

Table of Contents

Step-by-step guide

...

Setup → Global settings → Administration Tool (WATO) → Pretty-Print configuration files 

Setup → Global settings → Administration Tool (WATO) → Pretty-Print rules in config file of Event Console 

Image Removed

...

To enable, Setup → General → Global Settings → Search for "pretty-print"
Image Added

Toggle at least the "Pretty-Print configuration files" to on!


The next time you save a config in checkmk, you will be able to read the file better:

Code Block
languagebash
themeRDark
OMD[workshopmysite]:~$ cat etc/check_mk/multisite.d/wato/roles.mk 
# Written by Checkmk store

roles.update({'admin': {'alias': 'Administrator',
           'builtin': True,
           'permissions': {'wato.random_hosts': True}},
 'agent': {'alias': 'agent', 'builtin': True, 'permissions': {}},
 'guest': {'alias': 'Guest user', 'builtin': True, 'permissions': {}},
 'user': {'alias': 'Normal monitoring user',
          'builtin': True,
          'permissions': {}},
 'userx': {'alias': 'Normal monitoring user (copy)',
           'basedon': 'user',
           'builtin': False,
           'permissions': {'wato.automation': True, 'wato.sites': True}}})
OMD[workshop]:~$ 


Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("config","gui") and type = "page" and space = "KB"
labelsgui config

...