Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby kaushalshriyan » Mon Dec 03, 2018 9:59 pm

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

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby scottwilkerson » Tue Dec 04, 2018 12:46 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby kaushalshriyan » Tue Dec 04, 2018 1:10 pm

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

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby scottwilkerson » Tue Dec 04, 2018 1:18 pm

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby kaushalshriyan » Fri Dec 07, 2018 11:33 am

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

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby scottwilkerson » Fri Dec 07, 2018 11:54 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby kaushalshriyan » Fri Dec 07, 2018 9:40 pm

Thanks Scott Wilkerson and appreciate your help !!!
kaushalshriyan
 
Posts: 73
Joined: Fri May 22, 2015 7:12 am

Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2

Postby benjaminsmith » Mon Dec 10, 2018 12:50 pm

Hello kaushalshriyan,
Thanks Scott Wilkerson and appreciate your help !!!

Did you have any other questions or is ok to close this topic? Thanks.
User avatar
benjaminsmith
 
Posts: 241
Joined: Wed Aug 22, 2018 4:39 pm


Return to Nagios Core

Who is online

Users browsing this forum: dhirajsrajput, Mahantesh and 23 guests