Upgrade Nagios Core 3.5.1 to 4.4.5

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Upgrade Nagios Core 3.5.1 to 4.4.5

Postby urbancom » Fri Feb 14, 2020 1:30 pm

Hello,

My current Nagios Core 3.5.1 installation is installed in /etc/nagios. How can I upgrade to 4.4.5 when it installs to /usr/local/nagios. I have tried to just move the Nagios 3.5.1 files after the 4.4.5 install and I get this when I try and verify the nagios.cfg:

Website: https://www.nagios.org
Reading configuration data...
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Error: Template 'ORG-Urbancom' specified in host definition could not be not found (config file '/usr/local/nagios/etc/Default_collector/hosts.cfg', starting on line 7875)
Error: Invalid max_check_attempts value for host '5320 building elevator camera'
Error: Could not register host (config file '/usr/local/nagios/etc/Default_collector/hosts.cfg', starting on line 5217)
Error processing object config files!

Does anyone have a step by step for an upgrade with this environment? BTW I have nconf installed on the same server
urbancom
 
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Postby lmiltchev » Fri Feb 14, 2020 2:37 pm

Here's a guide on upgrading Nagios Core:

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/upgrading.html

Having said that, you need to fix your configuration errors first, before even attempting an upgrade...
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!
User avatar
lmiltchev
QA Manager
 
Posts: 13485
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Postby urbancom » Mon Feb 17, 2020 12:39 pm

I have gone through the link. My question is if nagios is installed in /etc instead of /usr/local how do I upgrade? I moved the config files and changed the paths and nagios upgrades but will not see the hosts or host groups
urbancom
 
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Postby lmiltchev » Mon Feb 17, 2020 1:22 pm

My question is if nagios is installed in /etc instead of /usr/local how do I upgrade?

Most likely, you installed nagios from a repo (not from source). Review the two links below in order to decide which one would work in your case:

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/upgrading.html#pack2src

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/upgrading.html#packaged

I moved the config files and changed the paths and nagios upgrades but will not see the hosts or host groups

Make sure that you have the correct paths to your config files in the nagios.cfg file. Test the configuration, and restart nagios (provided you don't have config errors).
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!
User avatar
lmiltchev
QA Manager
 
Posts: 13485
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Postby urbancom » Mon Feb 17, 2020 3:50 pm

Thank you. I will try it
urbancom
 
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Postby lmiltchev » Mon Feb 17, 2020 4:10 pm

You are welcome! I will be closing this topic now. If you have any further questions/issues, please start a new thread.
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!
User avatar
lmiltchev
QA Manager
 
Posts: 13485
Joined: Mon May 23, 2011 12:15 pm


Return to Community Support

Who is online

Users browsing this forum: ruchab and 20 guests