In which file are the sidebar elements, added by the user, saved?

Hey, we are setting up our CheckMK instance via a stateless deployment, so it can be redone like every day with the same instance as result. One thing I did not find yet:
How can I add sidebar elements?
This does not seem to be available via the API, correct?
Then my solution would be to set it up, copy the file where it’s saved and integrate this into the deployment script, like I did for notifications.mk before.
So, my initial question: Where are sidebar elements saved? I can’t find anything in /omd via grep -rni :frowning:

find . -mmin +2 prints too many findings, but /omd/sites/local/var/check_mk/web/peterge/cached_profile.mk looks interesting…

Hi,
each user has a directory with their settings: var/check_mk/web/USER.
This directory contains, among other things, the files:

  • sidebar.mk (contains the settings for the sidebar)
  • user_custom_snapins.mk (individually created elements for the sidebar).

Karl

2 Likes

Thanks! Works for our deploy like with notifications.mk before :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.