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
Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
It is always a good idea to have a backup of your config directory in case there are issues.kaushalshriyan wrote:Do i need to backup the configs and data. Please suggest
That said, the upgrade should be seemless
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
Hi Scott Wilkerson,
The steps are as follows
Please suggest.
Best Regards,
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
Best Regards,
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
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.
This is only something you would do if there was a problem and you needed to revert to the backup you created.
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
Thanks Scott Wilkerson and appreciate your help !!!
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Upgrade from Nagios Core 4.3.4 to Nagios Core 4.4.2
Hello kaushalshriyan,
Did you have any other questions or is ok to close this topic? Thanks.Thanks Scott Wilkerson and appreciate your help !!!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!