Configure:LoadYourPreviousNagiosCfg
From Wiki Centreon
| Languages: |
English |
After the installation of the Oreon, the greatest difficulty for beginners is the importation of configs of already existing Nagios configurations, and the biggest problem is related to the absence of documentation of the process. In this howto I will try to explain how to import an existing nagios configuration.
Steps by Steps.
Environment:
Nagios Version: 2.9 -- Oreon Version: 1.4 -- Linux Distro: OpenSuSE 10.1
1. Copy nagios directory config (/etc/nagios or /usr/local/nagios) to local computer.
2. Open browser and type your oreon server address, log in as admin user and go to: "Configuration -> Nagios -> Load" see picture below:
3. Select the checkcommands.cfg file and check options "Upload Options" and "Command Type" see picture above, click load button.
4. Select the misccommands.cfg files and check options "Upload Options" to No and "Command Type" to "Notification Command" click load button.
5. Create a tar file with (command.cfg, contactgroups.cfg, contacts.cfg, dependencies.cfg, hostextinfo.cfg, hostgroups.cfg, hosts.cfg, serviceextinfo.cfg, services.cfg, timeperiods.cfg)
\> tar cfv yourconfig.tar command.cfg contactgroups.cfg \
contacts.cfg dependencies.cfg \
hostextinfo.cfg hostgroups.cfg \
hosts.cfg serviceextinfo.cfg \
services.cfg timeperiods.cfg
6. Select yourconfig.tar and upload it with default options.
7. Upload the nagios.cfg. Check "File Type" options to nagios.cfg.
8. In the left menu click in "Nagios CFG". Activate the last uploaded nagios.cfg.
9. In the left menu click in "Generate". Leave options as below picture.
10. Upload cgi.cfg and resource.cfg with default options
11. Have a lot of fun....:-)
I hope to have helped...



