Page 1 of 1

Macro

Posted: Wed Jul 01, 2020 12:30 pm
by t0rpille
hi

in a tutorial, I do not understand very well this part, do you have an idea or an exemple ?..

Post Installation:

Create a Passphrase Resource file to store a passphrase for encryption and decryption.
Navigate to <NAGIOS_HOME>/etc/resource.cfg and define a macro $OMINAGIOSRESPATH$=<absolute path> in the resource.cfg and provide the absolute path of the file created in step 1.
Restart the Nagios Core services by running the following command: service nagios restart
Guidelines to create a Passphrase Resource file and a Passphrase:
Passphrase shall contain any alphanumeric and special characters.
The length of the passphrase should be minimum of 10 characters and maximum of 25 characters.
It is recommended to change the passphrase at regular interval of time.
Passphrase Resource file should have a read permission for the 'nagios' user and the user running discovery script.
'nagios' user runs the discovery script.

https://www.dell.com/support/article/fr ... re?lang=en

Re: Macro

Posted: Wed Jul 01, 2020 1:27 pm
by benjaminsmith
Hi,

Thanks for joining the Nagios Community Forum. Glad to have you here.

Yes, we've got some documents explaining user macros and the resource.cfg file. What product are you using, Nagios Core or Nagios XI? I've posted links for both below.

Documentation:
How Macros Work
Understanding The User Macros Component

Hope that helps.
Benjamin