October 2008
Intermediate to advanced
720 pages
16h 7m
English
resource.cfgNagios 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 can be from 1 to 32. These ...x
Read now
Unlock full access