Page 1 of 2

Keeping up with the current Version

Posted: Wed Mar 05, 2014 4:28 pm
by thetechguy
Sorry if this is a repeat topic, I tried to look in the forums for this to no avail. I just installed 4.0.2 and received a lot of help from the forums getting it working (thanks again to all who helped) now to find out there is a newer version. 4.0.3. Is there a guide out there on how to keep up to date with the current version? Maybe this is a feature request to have an update link on the main page or a script that will check and auto update without loosing current configurations.

Thank you

Jon

Re: Keeping up with the current Version

Posted: Wed Mar 05, 2014 4:39 pm
by sreinhardt
There actually should be a link that gets popped up on the main nagios page when there is a new revision. I recall that there was a bug with it in 4.0.1 or 4.0.2 on that particular link, so it might not be showing. However the actual upgrade should be pretty straight forward.

Code: Select all

Download the new tarball
Use the same flags with ./configure as you may have done before.
make install
make install-init
make install-commandmode
make install-webconf 
And that should be it!

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 12:13 pm
by thetechguy
Okay thank you - after backup up everything I will give this a shot and let you know how it went.

Jon

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 12:14 pm
by tmcdonald
We'll keep the thread open for you

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 2:12 pm
by thetechguy
followed your instructions.. the command with flag as run previous was .
./configure --with-command-group=nagcmd

all seemed to go well here..

then

make install produced the following output.

Code: Select all

[root@nagiosvm nagios-4.0.3]# make install
cd ./base && make install
make[1]: Entering directory `/u1/downloads/nagios-4.0.3/base'
make install-basic
make[2]: Entering directory `/u1/downloads/nagios-4.0.3/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install: cannot stat `nagios': No such file or directory
make[2]: *** [install-basic] Error 1
make[2]: Leaving directory `/u1/downloads/nagios-4.0.3/base'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/u1/downloads/nagios-4.0.3/base'
make: *** [install] Error 2
After these errors I went ahead and continued with the rest

make install-init - completed no errors *** Init script installed ***
make install-commandmode - completed no errors *** External command directory configured ***
make install-webconf - completed no errors *** Nagios/Apache conf file installed ***

Restarted Nagios and the web interface still shows that it is version 4.0.2

Did I miss something?

Are the errors following make install causing the problem?

Thank you

Jon

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 2:24 pm
by tmcdonald
What happens if you run

/usr/local/nagios/bin/nagios

?

It could be that you are on 4.0.3 but the web interface is not showing the right value.

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 2:25 pm
by thetechguy
Okay looks like there was one thing left out of the instructions..

should have run make all first.. to look like this..

Code: Select all

Download the new tarball
Use the same flags with ./configure as you may have done before.
make all
make install
make install-init
make install-commandmode
make install-webconf 
corrected this and now I have the correct version showing.

Thank you

Jon

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 2:52 pm
by slansing
Awesome, what were you following to do this? If it is one of our documents I'd like to change that.

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 4:55 pm
by thetechguy
I was following the post in the top of the thread from sreinhardt - if there was a guide I did not find it..

Thank you

Jon

Re: Keeping up with the current Version

Posted: Thu Mar 06, 2014 5:12 pm
by slansing