Macro

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
t0rpille
Posts: 1
Joined: Wed Jul 01, 2020 12:23 pm

Macro

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Macro

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked