Distributed config admin tool?

Nate Campi nate at campin.net
Tue Sep 4 04:22:10 CEST 2007


I use cfengine, and have it down to where I can setup a new Nagios
instance or setup a failed Nagios instance in minutes.

I have a single Nagios filesystem hierarchy that helps ensure that the
central and distributed services and host definitions are exactly the
same - using symlinks.

$ pwd
/var/cfengine/masterfiles/usr/pkg/nagios/etc
$ ls -l sites/savvis1/hostgroups/
lrwxr-xr-x  1 ncampi cfengine   46 Aug  6 16:26 hostgroups-ftp.cfg -> ../../../central/hostgroups/hostgroups-ftp.cfg
...

$ ls -l sites/savvis2/services/url/
lrwxr-xr-x  1 ncampi cfengine   42 Aug  7 22:09 query.cfg -> ../../../../central/services/url/query.cfg

I just make sure that the templates are real files (with different
contents, of course) for the central and distributed Nagios instances.

$ ls -l sites/savvis1/services/templates/generic.cfg 
-r--r-----  1 ncampi cfengine 3282 Aug  7 14:45 sites/savvis1/services/templates/generic.cfg

I use daemontools to start up Nagios using the correct config file, and
each nagios.cfg has the right cfg_dir and cfg_file options to assume the
role that I want for that host.

$ ls -l sites/savvis1/nagios.cfg 
-r--r-----  1 ncampi cfengine 31193 Aug  7 23:26 sites/savvis1/nagios.cfg

None of this is original, of course, but along with cfengine it makes it
a breeze to manage. If people really care, I could put up a better
description of how I did it.

On Fri, Aug 31, 2007 at 08:29:18AM +0100, tom.welsh at bt.com wrote:
> Yes, I'd second cfengine. Though rsync is a simple quick fix
> 
> ________________________________
> 
> From: nagios-users-bounces at lists.sourceforge.net on behalf of Bill Omer
> Sent: Thu 30/08/2007 21:11
> To: Rob Brown
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Distributed config admin tool?
> 
> 
> 
> On 8/30/07, Rob Brown <dtownrobbrown at gmail.com> wrote:
> > Are there any configuration admin tools out there that are multi-site
> > aware to be able to manage a distributed nagios setup (multiple
> > sites/servers)?
> > I am in the planning stages of expanding from a single pair (failover)
> > to distributed servers and am looking for a tool to help manage the
> > configs.
> > How are you admins with distributed sites managing them?
> 
> 
> You may want to take a look at cfengine.  It's pretty robust, and can
> support much more than just nagios configs.
> 
> -Bill
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> 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
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> 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
> 

-- 
Nate

"If builders built buildings they way computer programmers write
programs, the first woodpecker that came along would have destroyed all
civilization." - Weinberg's Law


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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