Take some time to learn how NConf works, what it does exactly and then how you install it. It's not an instant guide, but also not that difficult. Take take some time and study it carefully.
This guide will help you get started with NConf. It begins with an overview of NConf & Nagios, how to install NConf and shows you how to setup. Last but not least, there is some information about how to continue once you completed the first steps.
To understand NConf and Nagios, please read this:
Refer to the following link for detailed
After installation continue reading here :
Once you have successfully installed NConf, you will find that the tool contains some example data: a couple of hosts, a switch, a printer, some hostgroups, contacts and contactgroups, and some checkcommands. This content corresponds to what you would get by installing the Nagios RPM provided by rpmforge.
There is a pre-defined host called 'localhost'. This will allow you to monitor the Nagios server itself. If you are running a freshly installed version of Nagios, there is no need to make any changes in NConf to be able to start monitoring.
For a simple, single-server Nagios setup, simply configure one “collector” and no “monitor” server.
For starters, just hit the “Generate Nagios config” button. This will trigger a process that will export the database content to the Nagios config format.
Once the config has been generated, NConf will do a mandatory syntax check of the files. This is done by running the Nagios binary with the -v option. For this reason it's imparative that you have specified the correct NAGIOS_BIN path during installation.
Make sure your webserver user has access to your Nagios binary, or copy the binary to you 'nconf/bin/' folder. NConf will only create the final output file, if the syntax test was completed with '0 Errors'.
If NConf was able to successfully generate the the Nagios configuration, and if all the generated files passed the syntax check, you will now find a .tgz package file under:
The NagiosConfig.tgz file contains the following:
Default_collector/ extended_host_info.cfg extended_service_info.cfg hostgroups.cfg hosts.cfg servicegroups.cfg services.cfg
global/ checkcommands.cfg contactgroups.cfg contacts.cfg host_templates.cfg misccommands.cfg service_templates.cfg timeperiods.cfg</code>
To get started right away, simply do the following:
(Uses the deployment module)
With NConf 1.3 will be bringing you a modular deployment.
There you can easily configure where to put your configuration files and automatically restart nagios. (if permissions are set correct)
Following type of deployments are possible rigth now:
This will then deploy your configuration after each config generation, if you press “deploy”.
Edit your main nagios.cfg file:
Now Nagios should show you the configuration made by NConf:
You should see something like this under Service Detail.