change management or source control for Nagios configs?

Tom Throckmorton throck at gmail.com
Tue Apr 15 15:44:12 CEST 2008


On Apr 10 23:05, Max wrote:
> Hi,
> 
> SVN or CVS work very well for this; I personally use SVN.  Version
> control admin directories will not interfere with Nagios parsing
> configs from directories as it looks for files that end in .cfg (as
> you pointed out in your post).
> 
> Terrific way to keep a hot backup of your configs off site and to
> allow multiple configuration editors to work on files concurrently;
> you could even tie in a nice project management web interface like
> Trac for SVN and have a central place for people to easily see what
> changed when via the web as well as managing requests for changes to
> Nagios (new service / host monitoring requests etc) using the trouble
> ticketing features of a system like Trac ... and then their monitoring
> requests can be tied back to change sets by using the Milestone
> features of Trac.

+1

I'm doing basically what you've described using SVN+Jira.  On the Subversion
side, I use a pre-commit hook that does the preflight test, to keep bad configs
out of the repo (and away from Nagios).  Adding an issue number to the commit
message associates the commit with an issue; Jira shows the commit summary in
the issue detail, with links to the full changes.  On the Nagios side, I run a
script out of cron (or at will) that checks the repo for updates, cleans out
any config files that have been removed, gets the latest rev and reloads.  And
logs everything :)

One thing to keep in mind - this solution works well, but only as long as
you're still hand-editing your configs.  AFAIK, none of the front-ends support
using any kind of SCM tool for the backend, though that would be a welcome feature.

Cheers,

-tt


-- 
Tom Throckmorton

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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