Upgrade Nagios Core 3.5.1 to 4.4.5

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
urbancom
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Upgrade Nagios Core 3.5.1 to 4.4.5

Post by urbancom »

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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Post by lmiltchev »

Here's a guide on upgrading Nagios Core:

https://assets.nagios.com/downloads/nag ... ading.html

Having said that, you need to fix your configuration errors first, before even attempting an upgrade...
Be sure to check out our Knowledgebase for helpful articles and solutions!
urbancom
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Post by urbancom »

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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Post by lmiltchev »

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/nag ... l#pack2src

https://assets.nagios.com/downloads/nag ... l#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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
urbancom
Posts: 3
Joined: Fri Feb 14, 2020 1:14 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Post by urbancom »

Thank you. I will try it
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Post by lmiltchev »

You are welcome! I will be closing this topic now. If you have any further questions/issues, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked