Nagios expects to find the definition of macros, concerning how they are used to create command objects (2.9 When Nagios Needs to Do Something: The command Object from page 72), in the resources file
resource.cfg. This can also be use as supplied.
The location where Nagios should search for this file is defined by the
resource.cfg parameter in the main configuration file
nagios.cfg. It makes sense here to use the same directory in which
nagios.cfg is also located.
In its "factory settings",
resource.cfg defines only the
$USER1$ macro, which contains the path to the plugins:
In total, Nagios has provisions for 32 freely definable
$USERx$ macros, where
can be from 1 to 32. These ...