Page 1 of 1
Upgrade steps
Posted: Mon Sep 26, 2016 8:45 am
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
Re: Upgrade steps
Posted: Mon Sep 26, 2016 3:43 pm
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.
Re: Upgrade steps
Posted: Mon Feb 27, 2017 10:11 am
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
Re: Upgrade steps
Posted: Mon Feb 27, 2017 10:30 am
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!
Re: Upgrade steps
Posted: Mon Feb 27, 2017 11:19 am
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
Re: Upgrade steps
Posted: Mon Feb 27, 2017 11:30 am
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.