Advanced Configuration

Nagios configuration and Subversion
Using a version control system such as Subversion can make editing your configuration files more manageable. You'll be able to keep track of what revisions, roll back to old versions, edit the files using your favourite text editor, etc.
To start, your Nagios server will need to have the SVN client installed on it.
Assuming you've installed a Subversion (and Trac) server according to our directions, on the svn server create a base set of folders to hold your initial import:

cd /tmp
mkdir nagios-config
cd nagios-config
mkdir branches trunk tags

Copy the entire /usr/local/nagios/etc directory, including all files and subdirectories, from your Nagios server into /tmp/nagios-config/trunk/ on your svn server.
Once you've gotten the files copied, on the svn server, create a project from /tmp/nagios-config as per these instructions.
On your Nagios server, move your original config files:

cd /usr/local/nagios
mv etc etc.orig

Then checkout the copy from your svn server:

svn checkout http://<your_svn_server>/svn/nagios-config/trunk .

You can now work with your Nagios config using your favourite SVN tools.

Recent Updates

  • 2 years 1 week ago
  • 2 years 1 week ago
  • 2 years 2 weeks ago
    php 8.x
  • 2 years 2 weeks ago
    10.6.7
  • 2 years 2 weeks ago
    Drop Centos 5/6 stuff