Major update form Nagios 3.5.1 to Nagios 4.0.8

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mnamdev
Posts: 2
Joined: Thu Nov 10, 2016 2:22 am

Major update form Nagios 3.5.1 to Nagios 4.0.8

Post by mnamdev »

Hi Support Team,

Please guide me, We have Nagios Core installed in our RHEV environment. Nagios Version 3.5.1 installed and working fine for production monitoring.

Here i have some couple of questions on update from Nagios 3.5.1 to Nagios 4.0.8 or 4.2.2

Our Environment:
Nagios (3.5.1) installed with rpm packages (epel-release repo) and running in rhev environment.
We want to update our Nagios 3.5.1 with 4.0.8 or 4.2.2

1. Is it possible to update same machine with upgrade script.
2. Is it possible to update existing Nagios with new latest rpm. (rpm based update)
3. Should we install saperate instance for Nagios 4.0.8/4.2.2
4. What if we copied all the files from Nagios Core (3.5.1) to newly installed Nagios Core instance (plugins, configuration files, scripts, and contacts).


Please suggest!!!

Thanks,

Regards,
Manoj Namdev
CEE Operations
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Major update form Nagios 3.5.1 to Nagios 4.0.8

Post by avandemore »

1. You would have to create such a script, one is not provided for Nagios Core.
2. Sure, but we don't provide the RPM's so we can't really support any process from it. You'd have to look the RPM maintainers for that.
3. There should be only one version installed on any one OS at a time. Also the type of install should preserved in an upgrade eg if the old was installed with an RPM the upgraded one should be from the same source.
4. It is much easier in Core to do a migration as you describe rather than an upgrade. One benefit is that you test most things prior to bringing the old one offline.
Previous Nagios employee
mnamdev
Posts: 2
Joined: Thu Nov 10, 2016 2:22 am

Re: Major update form Nagios 3.5.1 to Nagios 4.0.8

Post by mnamdev »

Hi Avandemore,

Thanks for your support and valuable answers. It will help me lot.


One quick question.

Can you please suggest me how i can achieve 4th Point (4. What if we copied all the files from Nagios Core (3.5.1) to newly installed Nagios Core instance (plugins, configuration files, scripts, and contacts).

Description:
We have old Nagios Instance which is in virtual (RHEV) environment. We have also created new Nagios Instance in virtual (RHEV) environment.

What are the steps i need to follow for update from Nagios 3.5.1 to Nagios 4.0.8.

Thanks,

Regards,
Manoj Namdev
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Major update form Nagios 3.5.1 to Nagios 4.0.8

Post by avandemore »

The new system should be built roughly according to these instructions:

https://assets.nagios.com/downloads/nag ... edora.html

Only major differences on a minimal CentOS 6 install is you need packages wget and unzip as well as opening up port 80 in the firewall.

You should be able to mostly just copy the cfg files across but there may be problems. You can test for for issues like this:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Previous Nagios employee
Locked