Keeping the Nagios Configuration Sane
Niall O Broin
niall at makalumedia.com
Wed Mar 10 21:26:03 CET 2010
On 10 Mar 2010, at 18:58, David Wallis wrote:
> I manage the Nagios installation for 3 different domains at work, each
> domain with several hundred servers and clients. I quickly reached the
> "There's got to be a better way!" point when trying to maintain
> configuration files that were getting pretty big. I was using all the
> tricks listed in the Nagios docs, but it was still pretty crazy.
>
> The approach I took was to write a configuration generator program that
> uses a meta-config file to generate the hosts.cfg, hostgroups.cfg and
> services.cfg config files. The meta-config file allows one to set up
> cascading configuration variables, and then has one line per monitored
> host, that includes things like host groups, parents, etc, and then a
> list of services to monitor.
>
> I also created the idea of "meta-services" that allow the program to
> generate configuration data for any number of related services with a
> single service name in the meta-config file. For instance, including the
> service "weball" will cause the configuration generator to create
> service entries for every plumbed interface on the web server, checks
> for every virtual server (http and https), and checks for every SSL cert
> that it finds. In one domain, a 400 line meta-config file generates a
> 20,000 line services.cfg file.
>
> Rather than updating individual config files, I just update the
> meta-config file and then regenerate all of the *.cfg files. I've been
> using this for several years with very good results.
That sounds very interesting David. Is it something you can share with the community?
__
Kindest regards,
Niall O Broin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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