<< Back to man.ChinaUnix.net

1. Organizing Your Config Files

So far, we've modified the sample file called minimal.cfg (originally minimal.sample). Using the minimal sample is ideal for getting started, and by all means, you're free to use run Nagios in that configuration if you wish. At this stage however, it's worth pointing out that you can split your configurations into separate config files to help make things more manageable.

Straight from the documentation, we can see how this works:

# You can also tell Nagios to process all config files (with a .cfg

# extension) in a particular directory by using the cfg_dir

# directive as shown below:





Here are some other examples that should give you some ideas:

Device Types




Function Type




Topological Location





Physical Location





Departmental Layout







Area of Responsibility