Keeping up with the current Version
-
thetechguy
- Posts: 25
- Joined: Wed Feb 12, 2014 5:05 pm
Keeping up with the current Version
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
Thank you
Jon
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Keeping up with the current Version
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.
And that should be it!
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 Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
thetechguy
- Posts: 25
- Joined: Wed Feb 12, 2014 5:05 pm
Re: Keeping up with the current Version
Okay thank you - after backup up everything I will give this a shot and let you know how it went.
Jon
Jon
-
thetechguy
- Posts: 25
- Joined: Wed Feb 12, 2014 5:05 pm
Re: Keeping up with the current Version
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.
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
./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 2make 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
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.
/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.
Former Nagios employee
-
thetechguy
- Posts: 25
- Joined: Wed Feb 12, 2014 5:05 pm
Re: Keeping up with the current Version
Okay looks like there was one thing left out of the instructions..
should have run make all first.. to look like this..
corrected this and now I have the correct version showing.
Thank you
Jon
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 Thank you
Jon
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Keeping up with the current Version
Awesome, what were you following to do this? If it is one of our documents I'd like to change that.
-
thetechguy
- Posts: 25
- Joined: Wed Feb 12, 2014 5:05 pm
Re: Keeping up with the current Version
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
Thank you
Jon