How to disable(or unfold) the (right)Sidebar via setting or better URL parameter

Hi,

I got the following situation. I created a “view” user to show the Dashbord.
It shows it on a big tv via an raspberry pi with chrome started as systemd with login via URL
(https://<cmk-host>/<site>/check_mk/login.py?_username=view&_password=<password>&_login=1)
works great, now my problem:

After upgrading to cmk 2.0 there is this bar on the right side. It is foldable by clicking the button on the left side down. But I need to fold (hide) the sidebar without clicking, cause it should run without human interaction.

Is there any paramenter I didn’t found yet to set the default fold behavior?
Or is there maybe an URL parameter I can add to make the sidebar folded?

I saw that there is an async call to ‘sidebar_fold.py?fold=’ to unfold and ‘sidebar_fold.py?fold=yes’ to fold, but I see no way to make chrome this call after loading the page (and it seems like calling this async only tiggers on/off - the value is not relevant, so even if I manage to make this call it would flapping right?)

1 Like

Hi,

you can call your view directly by:

https://<cmk-host>/<site>/check_mk/view.py?view_name=<view>&_username=view&_password=<password>&_login=1

This view will started without navigation.
Cheers,
Christian

thx for the answer.

maybe my description was not clear enough. I have an dashboard which the user view has right to see.

also, the url you provide, doesnt work for me. even if I try it with eg. “allhosts”

https://<cmk-host>/<site>/check_mk/view.py?view_name=allhosts&_username=view&_password=<password>&_login=1

the browser stops at the login mask.

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.