update nagios core 3.5.1 to 4.1.1

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
jahman7
Posts: 3
Joined: Tue Oct 27, 2015 10:34 am

update nagios core 3.5.1 to 4.1.1

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: update nagios core 3.5.1 to 4.1.1

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: update nagios core 3.5.1 to 4.1.1

Post 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.
jahman7
Posts: 3
Joined: Tue Oct 27, 2015 10:34 am

Re: update nagios core 3.5.1 to 4.1.1

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: update nagios core 3.5.1 to 4.1.1

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jahman7
Posts: 3
Joined: Tue Oct 27, 2015 10:34 am

Re: update nagios core 3.5.1 to 4.1.1

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: update nagios core 3.5.1 to 4.1.1

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked