08 April 2005 20:19
I'm posting a useful (for me anyways) link to the "Template-Based Object Configuration" for the Nagios host monitoring system.
Over the last few years in my job, I've been developing (in my "spare" time) a host management system, useful for storing information about the machines I manage. This grew out of an effort to have a system that would auto-generate kickstart files for RedHat Linux installations using PXE, which is does quite well. Eventually I'd like to open-source the project.
I've been thinking in the past while it would be nice to add a monitoring piece to this, and so I've been reading over the Nagios docs and reading about the "objects" it uses in its configuration. It doesn't look like it would be necessarily "easy" to have Nagios use a database for a backend, so perhaps an easier way to do this would be to have my system dynamically spit out a Nagios config based on the information on the database.
Why not just use the existing Nagios CGI frontend, you ask? I personally loathe it, and that I can't add hosts, services, and such via that CGI front-end (as far as I can tell) only makes it worse.