View previous topic :: View next topic |
Author |
Message |
midway Apprentice
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Mon Aug 13, 2012 3:34 pm Post subject: [solved]upgrade nagios core from 3.2.3 to 3.4.1 |
|
|
Hello All,
I am trying to upgrade my nagios core from 3.2.3 to 3.4.1. I have performed following steps:
Code: |
~ wget http://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.4.1/nagios-3.4.1.tar.gz
~ tar xzf nagios-3.4.1.tar.gz
~ ./configure --with-command-group=nagcmd
~ make all
~ make install
~ nagios - v nagios.cfg (to test config)
~ /etc/init.d/nagios reload (all fine)
~ /etc/init.d/nagios restart (this works however throws warning)
|
My nagios directory is under /root/nagios.
Code: |
nagios # /etc/init.d/nagios restart
* Caching service dependencies ...
/etc/init.d/aoe: line 8: add_suffix: command not found [ ok ]
* Stopping nagios ... [ ok ]
* Starting nagios ...
|
There was 1 more warning which I have sorted. it complained about "startas" and asked me to replace it with "exec" under /etc/init.d/nagios.
Last edited by midway on Thu Sep 27, 2012 3:27 pm; edited 1 time in total |
|
Back to top |
|
|
gorkypl Guru
Joined: 04 Oct 2010 Posts: 444 Location: Kraków, PL
|
Posted: Mon Aug 13, 2012 3:48 pm Post subject: |
|
|
You will corrupt your Gentoo soon if you will install things like this without at least minimal knowledge about the system internals.
I am not sure if 'make install' installs anything into /etc/init.d/, so you may be using init script from your old nagios (probably installed from ebuild) with the new nagios installation (probably make install put the files under /usr, not /usr/local).
I'd suggest to stick to Portage tree, there is nagios 3.3.1 there (what is so new in 3.4 that you need it?). _________________ BTW, TWM FTW! |
|
Back to top |
|
|
midway Apprentice
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Tue Aug 14, 2012 9:23 am Post subject: |
|
|
gorkypl, my portage update doesn't tell me the version 3.3.1 is available otherwise i would have done that. also, there are several feature enhancements since 3.2.3 which I want on my nagios box. I was following this nagios guide which I have followed on my other red hat boxes too. I am on Portage version 2.1.11.9
http://nagios.sourceforge.net/docs/3_0/upgrading.html |
|
Back to top |
|
|
gorkypl Guru
Joined: 04 Oct 2010 Posts: 444 Location: Kraków, PL
|
Posted: Tue Aug 14, 2012 9:51 pm Post subject: |
|
|
nitish.anand wrote: | gorkypl, my portage update doesn't tell me the version 3.3.1 is available otherwise i would have done that. |
Then you must be doing something wrong
http://packages.gentoo.org/package/net-analyzer/nagios-core
Also I will repeat once again - mixing packages installed from source and from the Portage tree is something that will surely broke your installation. _________________ BTW, TWM FTW! |
|
Back to top |
|
|
midway Apprentice
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Thu Sep 27, 2012 3:26 pm Post subject: |
|
|
gorkypl wrote: | nitish.anand wrote: | gorkypl, my portage update doesn't tell me the version 3.3.1 is available otherwise i would have done that. |
Then you must be doing something wrong
http://packages.gentoo.org/package/net-analyzer/nagios-core
Also I will repeat once again - mixing packages installed from source and from the Portage tree is something that will surely broke your installation. |
upgraded to 3.3.1, thx. |
|
Back to top |
|
|
|