Page 1 of 1

Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Fri Feb 14, 2020 1:30 pm
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

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Fri Feb 14, 2020 2:37 pm
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...

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Mon Feb 17, 2020 12:39 pm
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

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Mon Feb 17, 2020 1:22 pm
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).

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Mon Feb 17, 2020 3:50 pm
by urbancom
Thank you. I will try it

Re: Upgrade Nagios Core 3.5.1 to 4.4.5

Posted: Mon Feb 17, 2020 4:10 pm
by lmiltchev
You are welcome! I will be closing this topic now. If you have any further questions/issues, please start a new thread.