Page 1 of 1

update nagios core 3.5.1 to 4.1.1

Posted: Tue Oct 27, 2015 12:36 pm
by jahman7
Hi nagios guys.

I´m running Nagios® Core™ Version 3.5.1 over Fedora 19 x86_64, and I´m planning to update it to 4.1.1, I'm reading the instrucctions in this link:

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

So I've a question about it:

In the command:
Extract the Nagios source code tarball.
tar xzf nagios-3.x.tar.gz
cd nagios-3.x

Were do I've to extract those files? on my nagios config files path?, my config files path is /etc/nagios/

any ohter advice to achieve the nagios update, will be welcome.

Thanks in advance.

Re: update nagios core 3.5.1 to 4.1.1

Posted: Tue Oct 27, 2015 4:57 pm
by jolson
You are free to extract those files wherever you would like to - I suggest extracting them in the /tmp folder personally. Give the following a try:

Code: Select all

cd /tmp
wget nagios-3.x.tar.gz
tar zxf nagios-3.x.tar.gz
cd nagios-3.x
./configure --with-command-group=nagcmd
make all
make install
Of course you must replace 'nagios-3.x' with whatever is appropriate. Thanks!

Re: update nagios core 3.5.1 to 4.1.1

Posted: Tue Oct 27, 2015 4:58 pm
by ssax
No, just download the file and put it in your /tmp directory, then you extract it with the tar command and it will be located under /tmp/nagios-4x where you cd into and run the configure commands

Use this guide though for more updated information:

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

Let us know if you have any additional questions.

Re: update nagios core 3.5.1 to 4.1.1

Posted: Wed Oct 28, 2015 10:59 am
by jahman7
Thanks ssax/Jolson for answering.

I got few questions about it:

The update will overwrite the information saved on the current folder (/etc/nagios)?

With the upgrade nagios folder the folder path will remain the same? I mean if the nagios location will be the same (/etc/nagios) after the update to 4.1.1 ?

Have a great day.

Re: update nagios core 3.5.1 to 4.1.1

Posted: Wed Oct 28, 2015 2:24 pm
by jolson
Is your Nagios Core machine running in a Virtual Machine? If so, take a snapshot and attempt the upgrade per Sean and my recommendations. The installation should not overwrite your host/service configs, but it may overwrite some other configs. It's also likely that the new installation will use /usr/local/nagios as an installation directory as opposed to the /etc/nagios directory that you're using currently. The directory difference is due to the way that package managers handle installation Nagios Core versus how installing from source handles it.

Re: update nagios core 3.5.1 to 4.1.1

Posted: Thu Oct 29, 2015 10:36 am
by jahman7
Thanks Jolson

After the update is it posible to change the path folder location, from /usr/local/nagios to /etc/nagios?

Have a great day.

Re: update nagios core 3.5.1 to 4.1.1

Posted: Thu Oct 29, 2015 10:45 am
by jolson
It might be a pain to change the folder layout after everything has already been installed, but it's certainly possible. Alternatively you could specify the following when running your ./configure:

Code: Select all

./configure --prefix=/etc/nagios