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:
Do we have a list of file names which gets overridden?
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.
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.
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
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.
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
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