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?
How can we give access to nagios user
Re: How can we give access to nagios user
User macros can be used for this. From https://assets.nagios.com/downloads/nag ... gmain.html:
https://assets.nagios.com/downloads/nag ... .html#user
You can have up to 256 Usern Macro: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.
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.