O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required