Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Access Checkmk view within an Iframe

In addition to this manual: https://docs.checkmk.com/latest/en/wato_user.html#_automatic_login_via_the_url we will show you when to use which URL for an automatic login via URL


If your site Apache is secured by cookie-based authentication

OMD[multisite]:~$ omd config show MULTISITE_COOKIE_AUTH
on


The URL for auto login needs to be set like this:

http://localhost/test/check_mk/login.py?_origtarget=/test/check_mk/view.py?view_name=allhosts&_username=cmkadmin&_password=cmk&_login=1

 

If your site Apache is secured by basic auth, the URL for auto login needs to be set like this:

http://cmkadmin:cmk@localhost/test/check_mk/view.py?view_name=allhosts


The same procedure for Nagios views presenting in an Iframe!

Debug HTTPS iframes

Problem

Since Werk #6774, it's not possible to use an HTTPS Iframe within Checkmk (this also affects nagvis). 

If you're considering doing this, please remember that this is a security issue and not supported by us. 

Determine the issue

You get the following broken page when opening an https Iframe within Checkmk.


For a more verbose error message, open the developer tools of the current browser, select the Header Console, and refresh the page. This is usually done with the F12 key:


The browser also produces an error about the missing Content-Secuirty-Policy (CSP). Please keep in mind that many Software/Pages do not want to be integrated as an Iframe due to security settings.


Please also check the logs from the Checkmk site:

OMD[mysite]:~$ ls var/log/apache/
access_log  error_log  stats

Filter by label

There are no items with the selected labels at this time.



  • No labels