2.14 The Resources File resource.cfg

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:

$USER1$=/usr/local/nagios/libexec

In total, Nagios has provisions for 32 freely definable $USERx$ macros, where x can be from 1 to 32. These ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.