OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

Nagios config generation?

yshollander

11-06-2010 10:49:51

Has anyone generated basic Nagios configs from the host info in the ONA DB?

Thanks

Isaac

Matt

14-06-2010 14:03:35

I would love to have a plugin for doing this at some point. I've not yet gotten around to building anything as it is a pretty complex set of things to enable (or at least it CAN be).

Any ideas here would be great.

As it stands I've got a few thoughts:
* In my environment, I use Puppet.. it has nagios config generation modules and I have the puppet external node plugin so puppet will get its info from ONA. This needs much more work I'm sure.
* Utilize http://opennetadmin.com/docs/utils/template_merge. This is a tool that you could use to template your basic host/services info for a nagios config. Then names,IP addresses etc could be pulled from ONA. This one would not be as generic for everyone to use but I think could be made to work fairly easily.
* create tables for storing nagios data in ONA.. this is not great as it takes time and probably wouldn't be flexible enough.

Anyway.. I have a few ideas on it obviously but nothing remotely useable. It certainly can be done and I hope will be done at some point. I use Nagios regularly and would love for it to be tied to ONA!