Bug 1115392

Summary: [Nagios] - When nagios-server-addons rpm is updated, email and snmp config files gets overriden.
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: medium Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, dpati, knarra, nsathyan, rhs-bugs, rhsc-qe-bugs
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nagios-server-addons-0.1.7-1.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-15 13:49:03 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-07-02 09:40:21 UTC
Description of problem:
When nagios-server-addons rpm is updated, email and smp config files gets overridden. 

Version-Release number of selected component (if applicable):
nagios-server-addons-0.1.5-1.el6rhs.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install nagios-server-addon 0.1.4.2 on RHS node  and start monitoring some hosts and configure nagios for email and snmp notifications.
2. Now update that to 0.1.5-1 by adding right channels and do an yum update.


Actual results:
All the above configuration made for email and snmp are overriden.

Expected results:
Email and snmp configurations should not be overriden.

Additional info:

Comment 1 Kanagaraj 2014-07-03 05:35:56 UTC
Do we have a list of file names which gets overridden?

Comment 2 RamaKasturi 2014-07-03 06:59:38 UTC
I could see the following files getting overriden as of now when i update gluster-nagios-addons and nagios-server-addons.

/etc/nagios/gluster/gluster-templates.cfg
/etc/nagios/gluster/gluster-contacts.cfg
/etc/nagios/gluster/snmpmanagers.conf
/etc/nagios/nrpe.cfg

Will update the bug if i see any thing more.

Comment 3 Ramesh N 2014-07-14 04:58:45 UTC
Overwriting config files in the nagios server side is aready fixed in upstream with patch http://review.gluster.org/#/c/8220/. But I am not sure about what is getting overriden in nrpe.cfg file. 

nrpe.cfg is a config file in node side. We have simila bug https://bugzilla.redhat.com/show_bug.cgi?id=1107997 for nagios_server.conf getting overriden. May be we can track the issue with node side rpms (gluster-nagios-addons) in the above bug.

Comment 4 RamaKasturi 2014-07-14 05:33:34 UTC
please ignore nrpe.cfg file from here as it is a config file in node side. Will update the bug below with the files which gets overriden on node side.

https://bugzilla.redhat.com/show_bug.cgi?id=1107997

Comment 7 RamaKasturi 2014-10-17 05:42:25 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 8 RamaKasturi 2014-11-12 10:33:44 UTC
Verified and works fine with build nagios-server-addons-0.1.8-1.el6rhs.noarch.

Email and snmp files are not getting overriden.

Following are the files which are not getting overriden on upgrading nagios-server-addons.
/etc/nagios/gluster/gluster-templates.cfg
/etc/nagios/gluster/gluster-contacts.cfg
/etc/nagios/gluster/snmpmanagers.conf

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