-
Notifications
You must be signed in to change notification settings - Fork 71
Configuration Element view
Frédéric MOHIER edited this page Dec 20, 2018
·
3 revisions
This page explains some features that should be configured for an element (host or service) view.
In an element configuration file, it is possible to define notes
, notes_url
and action_url
. Nagios legacy definition do not allow to define more than one item and does not allow to define how to display information.
This is how the Web UI uses these properties:
- several items may be declared. The list of items must be a | separated list
- each item in the list can contain a decoration part and a content part, both are optional. decoration::content
- decoration part can contain a title and an icon: title,,icon
- content part can contain a description and an url: description,,url
As such, a note/action may be formatted as:
- description
- url
- url,,description
- title::description,,url
- ,,icon::description,,url
- title,,icon::description,,url
If title is not specified, a default title is used as title If icon is not specified, a default icon is used as icon
As an example
notes simple note... only text but <em>may be formated</em>\
|Title::note with only title...\
|Title,,file::note with a title and an icon...\
|Title,,file::note with a title and an icon and an url...,,http://my-url.fr\
|KB5126,,tag::<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. \
Proin et leo gravida, lobortis nunc nec, imperdiet odio. Vivamus quam velit, scelerisque \
nec egestas et, semper ut massa. Vestibulum id tincidunt lacus. <em>Ut in arcu at ex egestas \
vestibulum eu non sapien</em>. <span style="color:red">Nulla facilisi</span>. \
Aliquam non blandit tellus, non luctus tortor. \
Mauris tortor libero, egestas quis rhoncus in, sollicitudin et tortor.,,http://my-url.fr\
notes_url http://www.my-KB.fr?host=$HOSTADDRESS$|http://www.my-KB.fr?host=$HOSTNAME$
action_url http://www.google.fr|url1::http://www.google.fr|\
My KB,,tag::http://www.my-KB.fr?host=$HOSTNAME$|\
Last URL,,tag::<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. \
Proin et leo gravida, lobortis nunc nec, imperdiet odio. Vivamus quam velit, scelerisque \
nec egestas et, semper ut massa.,,http://www.my-KB.fr?host=$HOSTADDRESS$
- Shinken Web User Interface, version 2.1+, ©2011-2016