nagios upgrade / migration from 1.2 to 2.0b1

Andreas Ericsson ae at op5.se
Mon Jan 17 09:51:44 CET 2005


darren kruse wrote:
> Hi,
> I am a very happy user of nagios 1.2 and am interested in upgrading / 
> migration to the new 2.0b1 version.
> 
> My question is quite simialr to Michael´s (he didn get an on-list 
> answer I can see)
> http://article.gmane.org/gmane.network.nagios.user/26449
> 
> I cannot afford to have my production nagios 1.2 system down while I try 
> to fix stuff. So I´ll ask this a few different ways ..
> 

If you can't afford downtime, you need redundant systems. Buy anothe 
first and install Nagios 2 on it.

> - Is an inplace migration safe , and if so, what is the reccomended 
> process ?
> 

Yes, with minimal (30 seconds) downtime. Compile nagios 2.x. Copy 
configuration to a separate directory and make the necessary changes 
there (you can point nagios.cfg to different object config files and run 
the preflight check on the new config).

> - Will a generic 2.0 install simply overwrite existing nagios binaries,

That depends entirely on you. I would suggest not running make install 
before having made sure everything works as you expect.


> and will nagios 2.0 choke on my nagios 1.2 config files ?
> 

Yes, hence the copy/fix/replace order above.

> - Is changing the default prefix to /usr/local/nagios2 in ./configure 
> enough to make an install of nagios 2 parallel to the existing nagio 1.2 
> install ?

Assuming no other paths clash, yes.

> It looks like this is what Rudi did : 
> http://article.gmane.org/gmane.network.nagios.user/26466/match=upgrade
> 
> For backward compatibility.. it would seem that the new nagiostats 
> utility is not liking my existing nagios.cfg  ( I compiled nagios2 on a 
> different machine, then moved the nagiostats binary to the production 
> machine.
> 

Yes. Some of the nagios.cfg options are obsolete with 2.0, and contacts 
are specified per host instead of per hostgroup now adays.

> eg :
> ferret# ./nagiostats /usr/local/etc/nagios/nagios.cfg
> 
> Nagios Stats 2.0b1
> Copyright (c) 2003-2004 Ethan Galstad (nagios at nagios.org)
> Last Modified: 12-15-2005
> License: GPL
> 
> Error processing config file '/usr/local/nagios/etc/nagios.cfg'
> ferret#
> 
> If I can´t safely upgrade to nagios 2 , then I´ll settle for now for 
> being able to run nagiostats over my existing nagios 1.2 installation. 
> Is this possible ?
> 

No, it is not.

> thanks,
> darren
> 
> Darren Kruse
> Network Operations Centre
> Adam Internet
> sip://darren@adam.com.au or +618 82754050
> Office Address: 117 King William St, Adelaide 5000 Postal Address:
> G.P.O. Box 121, Adelaide 5001
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when 
> reporting any issue. ::: Messages without supporting info will risk 
> being sent to /dev/null
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list