Description of problem: ------------------------ When the auto-config service is run from command line, it asks the user is asked to enter the address of the Nagios server - Enter Nagios server address [rhs-client25.lab.eng.blr.redhat.com]: The script accepts any string that is entered as input here. The script should validate if the entered string is a valid address. Version-Release number of selected component (if applicable): nagios-server-addons-0.1.5-1.el6rhs.noarch How reproducible: Always Steps to Reproduce: 1. Run the auto-config script from the command line on the nagios server. 2. When prompted to enter the nagios server address, enter any string. 3. Check the file /etc/nagios/nagios_server.conf for the value of "nagios_server" Actual results: The value of "nagios_server" is the string provided in response to the prompt for nagios server address. Expected results: Auto-config should validate the string entered as address of the nagios server. Additional info:
upstream patch : http://review.gluster.org/#/c/7740/
Verified and works fine with build nagios-server-addons-0.2.0-1.el6rhs.noarch. If IP address is given as the nagios server address then it checks the pattern and verifies that it is mapped to one of the non loopback device in the host. If user enters fqdn name, then it tries to resolve it, also it verifies that resolved IP address maps to one of the non loopback device in the host.
Ramesh, Kindly review and sign-off the edited doc text.
Doc text looks good. Approved.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-1494.html