Bug 1107997

Summary: [Nagios] - nagios_server.conf gets overridden when updating nagios server and nodes with the latest rpms.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: gluster-nagios-addonsAssignee: Ramesh N <rnachimu>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, dpati, rhsc-qe-bugs, rnachimu
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-nagios-addons-0.1.11-1.el6rhs Doc Type: Bug Fix
Doc Text:
Cause: TBD Consequence: TBD Workaround (if any): Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-15 13:47:57 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-11 09:15:14 UTC
Description of problem:
nagios_server.conf file gets overridden when nagios is updated.

Version-Release number of selected component (if applicable):
nagios-server-addons-0.1.2-1.el6rhs.x86_64
gluster-nagios-addons-0.1.2-1.el6rhs.x86_64

How reproducible:
Always

Steps to Reproduce: 
1. Add the latest repo to the existing nagios server and nodes.
2. Do an yum install of the latest rpms.
3. 

Actual results:
/etc/nagios/nagios_server.conf is overridden.

Expected results:
/etc/nagios/nagios_server.conf should not be overriden.

Additional info:

Comment 1 Ramesh N 2014-07-02 07:26:33 UTC
Upstream patch : http://review.gluster.org/#/c/8221/

Comment 2 RamaKasturi 2014-07-14 05:36:44 UTC
In nrpe.cfg file on the node , user can configure the warning and critical levels for the services.

User configured values gets overriden when gluster-nagios-addons is updated. 

AFAIK, these values should not be overriden. Please let me know if you think otherwise.

Comment 3 Ramesh N 2014-07-17 07:19:27 UTC
I am not sure this is the suggested way to configure threshold. This configuration will be host specific if we do it nrpe.cfg. Its better to do it in the Nagios server side configurations. But currently we don't have this capability in server side too.

Comment 6 RamaKasturi 2014-10-17 05:41:01 UTC
From kanagaraj, i understand that these bugs have been moved to on_qa by errata. 

Since QE has not yet received the build i am moving this bug back to assigned state. Please move it on to on_qa once builds are attached to errata.

Comment 7 RamaKasturi 2014-11-12 09:50:50 UTC
Verified and works fine with build  gluster-nagios-addons-0.1.12-1.el6rhs.x86_64.

Installed nagios 3.0.2 from live. 

Added the 3.0.3 nagios repo

Performed an yum update.

/etc/nagios/nagios_server.conf does not get replaced.

Comment 8 Ramesh N 2014-11-24 07:23:13 UTC
Doc text not required as this issue was never faced by the customer. It applicable only during upgrade and that is fixed with the first upgrade (3.0.3).

Comment 10 errata-xmlrpc 2015-01-15 13:47:57 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