Page 1 of 1

Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Mon Dec 03, 2018 9:59 pm
by kaushalshriyan
Hi,

I am currently running Nagios Core 4.3.4. I am referring to https://www.nagios.org/downloads/nagios ... ore-source. Are there steps to follow to upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2? Do i need to backup the configs and data. Please suggest.

#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.3.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 341 services.
Checked 39 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 26 contacts.
Checked 6 contact groups.
Checked 34 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 39 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

I look forward to hearing from you. Thanks in Advance.

Best Regards,

Kaushal

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Tue Dec 04, 2018 12:46 pm
by scottwilkerson
kaushalshriyan wrote:Do i need to backup the configs and data. Please suggest
It is always a good idea to have a backup of your config directory in case there are issues.

That said, the upgrade should be seemless

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Tue Dec 04, 2018 1:10 pm
by kaushalshriyan
Hi Scott Wilkerson,

I have installed Nagios core 4.3.4 using compressed tarball source file. Any steps to follow to upgrade it to Nagios Core 4.4.2 using source file?

Best Regards,

Kaushal

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Tue Dec 04, 2018 1:18 pm
by scottwilkerson

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Fri Dec 07, 2018 11:33 am
by kaushalshriyan
Hi Scott Wilkerson,

The steps are as follows

Code: Select all

1) cd /usr/local/
2)cp -r nagios /backup
3)systemctl stop nagios.service
4)cd /tmp
5)wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.2.tar.gz
6) tar xzf nagios-4.4.2.tar.gz
7)cd nagios-4.4.2
8)./configure
9)make all
10)make install
11)make install-daemoninit
12) Update nagios.cfg
If you are upgrading from Nagios Core 4.3.2 and earlier you will need to update the nagios.cfg file to point to /var/run/nagios.lock using the following command:

sed -i 's/^lock_file=.*/lock_file=\/var\/run\/nagios.lock/g' /usr/local/nagios/etc/nagios.cfg
13)cp -r /backup/nagios /usr/local/nagios/ ( I am not sure about this step -> Please comment)
14)systemctl start nagios.service
15)systemctl status nagios.service
16)/usr/local/nagios/bin/nagios -V
17)#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Please suggest.

Best Regards,

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Fri Dec 07, 2018 11:54 am
by scottwilkerson
You would not do step 13

This is only something you would do if there was a problem and you needed to revert to the backup you created.

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Fri Dec 07, 2018 9:40 pm
by kaushalshriyan
Thanks Scott Wilkerson and appreciate your help !!!

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Posted: Mon Dec 10, 2018 12:50 pm
by benjaminsmith
Hello kaushalshriyan,
Thanks Scott Wilkerson and appreciate your help !!!
Did you have any other questions or is ok to close this topic? Thanks.