Bug 1112201

Summary: [Nagios] - Error message needs to be improved when discovery.py is run with a host which has the same host name of the host which is already being monitored by nagios.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: nagios-server-addonsAssignee: Ramesh N <rnachimu>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: low Docs Contact:
Priority: unspecified    
Version: rhgs-3.0CC: asrivast, dpati, rnachimu
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nagios-server-addons-0.1.8-1.el6rhs Doc Type: Bug Fix
Doc Text:
Cause: TBD Consequence: Fix: Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-15 13:48:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RamaKasturi 2014-06-23 10:28:47 UTC
Description of problem:
When two of the servers have the same and discovery.py is run, it gives an erro message saying , "Error: Host is already being monitored".

Version-Release number of selected component (if applicable):
nagios-server-addons-0.1.3-3.el6rhs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Have a node already being monitored by nagios which has the hostname as 'nagios.lab.redhat.com'
2. Now set the same host name to another server and run discovery.py.
3.

Actual results:
Discovery.py gives an error saying, "Error:host is already being monitored'

Expected results:
The message should be read as "Error: Host Name already in use".

Additional info:

Comment 2 Ramesh N 2014-09-22 11:40:33 UTC
Upstream patch http://review.gluster.org/#/c/8658/1

Comment 3 RamaKasturi 2014-11-14 13:00:09 UTC
Verified and works fine with build nagios-server-addons-0.1.8-1.el6rhs.noarch.

When user has a host name which is already being used/ which is already being monitored, running discovery.py displays a message saying "ERROR: Host Name <hostname> is already in use".

Comment 4 Ramesh N 2014-11-24 08:58:29 UTC
Doc text not required as its a  small change in the error message also it was not documented as known issue.

Comment 6 errata-xmlrpc 2015-01-15 13:48:45 UTC
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/RHBA-2015-0039.html