Dynamic Nagios Configuration

Kevin Fenzi kevin at scrye.com
Thu Jun 14 16:43:04 UTC 2012


On Tue, 12 Jun 2012 01:15:36 +0300
Christos Triantafyllidis <christos.triantafyllidis at gmail.com> wrote:

> Hi all,
> 
>     long ago i volunteered myself to start the work on a tool that
> will create dynamic Nagios configuration based on external
> information (i.e. infra-hosts).
> 
>     You can find my work on this at:
> git://fedorapeople.org/~ctria/DynamicNagiosConfig.git
> 
>      The idea is that there is a main configuration file:
> DNC.yml
> which specifies which modules to use to create the configuration.
> Given that the only information i could get from infra-hosts was the
> host's information itself this only does host configs but can be
> easily extended to support services, contacts etc.
> 
> The execution is simple, checkout the infra hosts repository in
> sample_configs/infra-hosts folder and execute: ./DNC.py
> 
> You should get all hosts at standard output.
> 
> Finally a simple YAML based file module allows overrides to be
> specified.
> 
> I'm willing to move this forward so i'd definitely like to hear your
> comments

A good start. ;) 

So, what other information do we need to make this generate (most if
not all of our nagios configs)? 

I'd guess:

- vpn info. I'd like to get our vpn info in there so we have the right
  dependencies so we can only get one alert from a site being down
  instead of 10. ;) 

- contacts

- services - perhaps we could populate these in infra-hosts too? Not
  sure how best to do this. 

I guess the next step I would say is look at our current nagios config
and see how we can autogenerate the rest of it, or at least the parts
related to machines. 

kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20120614/b16deca5/attachment.sig>


More information about the infrastructure mailing list