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:
The idea is that there is a main configuration file:
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:
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
PS: This is my first python script from scratch so don't be very hard on me :)