Header Templates

Introduction

Header templates are html files with some macros in it. These files can be used as header menu in the maps. The header templates are located in nagvis/etc/templates/header/ relative to the nagvis root directory. The templates are named like this: tmpl.*.html.

Macros

The following macros are available in the header templates:
Macro Description
[current_map] Name of the current map (e.g. demo,demo2)
[current_map_alias] Alias of the current map
<!-- BEGIN maplist -->
[map_name]
<!-- END maplist -->
A list of all maps defined in NagVis. The code between <!-- BEGIN maplist --> and <!-- END maplist --> is repeated for each map. For an example have a look at nagvis/etc/templates/header/tmpl.default.html.

Within the BEGIN/END-Tags the following macros are available:
* [map_name]: Name of the map
* [map_alias]: Alias of the map
* [selected]: If the mapname is equal to the currently opened map it will be replaced with selected="selected"
[html_base] URL to HTML-Base (/nagios/nagvis)
[html_templates] Path to header templates (nagvis/nagvis/etc/templates/header)
[html_template_images] Path to header template images (nagvis/nagvis/images/templates/header)
[lang_select_map] Label for map selection
[lang_edit_map] Label for edit map link
[lang_need_help] Label for help selection
[lang_online_doc] Label for link to online documentation
[lang_forum] Label for link to NagVis forum
[lang_support_info] Label for link to support information
[lang_overview] Label for overview string
[lang_instance] Label for instance string
[lang_rotation_start] Label for starting the map rotation
[lang_rotation_stop] Label for stopping the map rotation
[lang_refresh_start] Label for starting the map refresh countdown
[lang_refresh_stop] Label for stopping the map refresh countdown