Mathias Kettner - Linux Experte
Switch language   BeratungBeratungSchulungenSchulungenCheck_MKCheck_MK
   
 

Embedding views into other pages

Required version: 1.1.9i3
December 16. 2010

Display Options - useful for embedding

It is not difficult to embed a Multisite view into another web application. Since Multisite makes use of frames, the actual view in the right frame has its own URL - independent of the sidebar. So just browse to the view in question and copy the URL of the view frame.

When you want to embed such a view into another application (or for example want to create a dash board constructed out of multiple Multisite views) then you'll soon want to customize the appearance of the view - e.g. by removing the header, footer, buttons or whatever.

As of version 1.1.9i3 this is now possible by passing the HTML variable display_options along with the URL of the view. Just append a &display_options=.... to the URL.

The value of display_options is a list of characters. Lower case characters turn off a class of output, upper case letters turn them on.

Unspecified option defaults are calculated as follows:

  • If all given display_options are upper case, assume all not given values default to lower-case
  • Vice versa when all display_options are lower case. All not given values default to upper-case
  • When the display_options are mixed case assume all unset options to be upper-case

Here is the table of available display options:

OptionParts being displayed by that option
hthe HTML header and body-tag (containing the tags <HTML> and <BODY>)
tthe title line showing the header and the logged in user
bthe blue context buttons that link to other views
fthe tab for using filters
cthe tab for using commands and all icons for commands (e.g. the reschedule icon)
othe view options number of columns and refresh
dthe Display tab, which contains column specific formatting settings
ethe tab for editing the view
zthe footer line, where refresh: 30s is being displayed
rthe auto-refreshing in general (browser reload)
sthe playing of alarm sounds (on critical and warning services)
iall hyperlinks pointing to other views
xall other hyperlinks (pointing to external applications like PNP, WATO or others)
mNew in 1.1.11i2: If this option is not set, then all hyperlinks are targeted to the HTML frame with the name main. This is useful when using views as elements in the dashboard.
lNew in 1.1.11i4: Enables/Disables the column title links in multisite views
wNew in 1.1.12b1: Enables/Disables the limit and livestatus error message in views

So if you want to display the context buttons and internal and external links - for example - append a &display_options=bix to the URL. If you want just the plain data table to be displayed but keep internal links in function, append a &display_options=I.



 

Navigation:

Check_MK Homepage
Detailed Introduction
Documentation
Downloads
Download with OMD (Subscription needed)
FAQ
Mailinglists
Bugtracking & Feedback
Public GIT repository
Interview with Ethan Galstad
Stories, Statements, Successes (NEW)
Screenshots of Multsite
Live-Demo of Multsite GUI
Support Contracts (German) - NEW
 
Startseite ~ Seitenverzeichnis ~ Impressum ~ AGB ~ Die Tauschzone Letzte Änderung: 15. Mai 2012
  Webdesign: kopf+herz, München