Upgrade steps

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
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Upgrade steps

Post by kaushalshriyan »

Hi,

I am currently running nagios 4.2.0 in my production environment. What is the recommended method of upgrading it to nagios 4.2.1 version? Do i need to take a backup of the configs and install it during scheduled maintenance window time period or do i need to have one more node which will monitor the clients as the the upgradation process is currently going on in the primary node.

Any suggestions will be highly appreciable.

Regards,

Kaushal
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgrade steps

Post by rkennedy »

You should be able to just run through our instructions once again -
https://assets.nagios.com/downloads/nag ... Source.pdf

Except, skip the parts that create users and such.

Code: Select all

cd /tmp 
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.2.0.tar.gz
tar zxvf nagios-4.2.0.tar.gz 
Then run your configure / makes and recompile the newer version.
Former Nagios Employee
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Re: Upgrade steps

Post by kaushalshriyan »

Hi Robert Kennedy,

I am currently running Nagios 4.2.0 in my production setup. I have downloaded nagios-4.3.1.tar.gz in /tmp folder. I have written down the upgrade steps to upgrade it from 4.2.0 to 4.3.1

Code: Select all

 
cd /usr/local/
cp -r nagios nagios.org
cd /tmp/
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.3.1.tar.gz
tar xf nagios-4.3.1.tar.gz
cd nagios-4.3.1
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
cd /tmp
wget http://nagios-plugins.org/download/nagios-plugins-2.2.0.tar.gz
tar xf nagios-plugins-2.2.0.tar.gz
cd nagios-plugins-2.2.0
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

######copy the backup of /usr/local/nagios.org/etc configs to the new /usr/local/nagios/etc#################
cd /usr/local/
cp -r /usr/local/nagios.org/etc/* /usr/local/nagios/etc/

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios start
Please let me know if i the above steps are correct or if i am missing anything for upgrading Nagios from 4.2.0 to 4.3.1.

Thanks in Advance.

Regards,

Kaushal
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Upgrade steps

Post by dwhitfield »

We have upgrade steps at https://assets.nagios.com/downloads/nag ... ading.html. Yours look good, but they could be a little different depending on your OS.

I do see one thing missing, although it might happen outside of the command. Make sure you take a full system backup!
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Re: Upgrade steps

Post by kaushalshriyan »

Hi dwhitfield,

I have a followup question regarding I do see one thing missing, although it might happen outside of the command. Make sure you take a full system backup!
Are you saying to do cp -r /usr/local/nagios /backup/nagios.original. I am currently running Nagios 4.2.0 on CentOS Linux release 7.3.1611 (Core)

Please correct me if i am understanding it wrong. Thanks in Advance

Regards,

Kaushal
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Upgrade steps

Post by dwhitfield »

I was thinking like a VM snapshot. You might be taking regular OS backups already. If that's the case, then I wouldn't worry too much about it. This is not a nagios-specific suggestion, just a suggestion for any time you upgrade software on a production system.

If a full system backup is not an option, then certainly your suggested command will be useful.

Please let me know if you need additional clarity.
Locked