[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    Re: [Nagios-users] Help - I just blew away my configs
From:       Max <perldork () webwizarddesign ! com>
Date:       2010-06-25 4:47:01
Message-ID: AANLkTiloTn3ri2qjEF-cnuxzkfUsynEri_SgENq3IleC () mail ! gmail ! com
[Download RAW message or body]

Shows running settings (config.cgi)

Objects.cache contains a flattened version of all the configuration
objects your configuration tree had; the primary loss is that there
are no templates in objects.cache, so you will have to recreate those.

Isave a copy of objects.cache in a very safe place off server and save
a copy on server - nagios has a command line option that will let you
start it using an objects.cache formatted file ( search for pre-cached
configs)m

If you had plugins in your config tree those are lost, cgi.cfg
settings are lost, nagios.cfg settings are lost, and resource.cfg
settings are lost - minus resource.cfg the rest are pretty eady to
redo (as resource.cfg might have had passwords or other unique info.

Definitely put your configs in svn, cvs, git or another version
control system as you re-create your config templates - and makes sure
you backup your vcs repository daily.

Max

On 6/24/10, Sean Carley <scarley@gmi-mr.com> wrote:
> You can also try /nagios/cgi-bin/config.cgi, not sure if that shows the
> running or on-disk configs.
>
> -s
>
>
>
> -----Original Message-----
> From: Gius, Mark [mailto:mgius@createspace.com]
> Sent: Thursday, June 24, 2010 4:11 PM
> To: Nagios Users List
> Subject: Re: [Nagios-users] Help - I just blew away my configs
>
> A pretty significant portion of the configurations are stored in the
> objects cache (/var/log/Nagios/objects.cache for me).  This won't be as
> clean as your configs (and I'm not sure Nagios can use this file as a
> config directly), but you should be able to recover a pretty good amount
> of your running configs from there, and start reconstructing the config
> files.
>
> May I be the first to suggest placing your configuration in revision
> control, which will help mitigate this problem in the future.  I would
> suggest Subversion (http://subversion.tigris.org/) or git
> (http://git-scm.com/).
>
> Good luck!
>
> -Gius
>
>> -----Original Message-----
>> From: Litwin, Matthew [mailto:mlitwin@stubhub.com]
>> Sent: Thursday, June 24, 2010 3:17 PM
>> To: Nagios Users List
>> Subject: [Nagios-users] Help - I just blew away my configs
>>
>> I just blew away all my nagios config files. Nagios is still running.
>> Is there any way I can make nagios spit up the configs that were
> loaded
>> from the command line or is all hope lost?
>>
> -----------------------------------------------------------------------
>> -------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users@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
>
> ------------------------------------------------------------------------
> ------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Nagios-users mailing list
> Nagios-users@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
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Nagios-users mailing list
> Nagios-users@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
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Nagios-users mailing list
Nagios-users@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic