How can we give access to nagios user

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
raja2207
Posts: 1
Joined: Tue May 21, 2019 5:28 am

How can we give access to nagios user

Post by raja2207 »

We have to move the Application monitoring(Server availability,health status etc.) from Patrol to Nagios.
To monitor, the Nagios user needs the credentials for the application credential (for example weblogic username and password)
So,looking for a complaint/best way for the Nagios user to access a file (having credentials) to set up Nagios monitoring for WebLogic resources(middleware) .

Could someone please help in achieving this?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How can we give access to nagios user

Post by cdienger »

User macros can be used for this. From https://assets.nagios.com/downloads/nag ... gmain.html:

Resource File

Format: resource_file=<file_name>
Example: resource_file=/usr/local/nagios/etc/resource.cfg
This is used to specify an optional resource file that can contain $USERn$ macro definitions. $USERn$ macros are useful for storing usernames, passwords, and items commonly used in command definitions (like directory paths). The CGIs will not attempt to read resource files, so you can set restrictive permissions (600 or 660) on them to protect sensitive information. You can include multiple resource files by adding multiple resource_file statements to the main config file - Nagios will process them all. See the sample resource.cfg file in the sample-config/ subdirectory of the Nagios distribution for an example of how to define $USERn$ macros.
You can have up to 256 Usern Macro:

https://assets.nagios.com/downloads/nag ... .html#user
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked