NConf macros

As of version 1.2.6, NConf allows users to use certain predefined macros in their configuration. The macros can be placed in any text field. Macros will be replaced with the respective values when the configuration files for Nagios are generated.

Multiple macros can be combined freely. They can be reused as many times as necessary.
Macros are case-sensitive!


The following predefined macros exist:

Macro Context Replaced with
%NAGIOS_SERVER_NAME%hosts,
services,
adv.services,
hostgroups,
servicegroups
This macro is dynamically replaced with the name of the current nagios-collector / nagios-monitor server (e.g. “Default Nagios”)


If you require additional macros that are not listed here yet, please feel free to request them by posting in the “Feature requests” section of our forum.