Migrating from Nagios to Shinken Enterprise is very easy. You can import your previous Nagios configuration using the cfg-file-nagios source.
To define a nagios cfg source:
During the Shinken Enterprise installation process, a cfg-file-nagios module called cfg-file-nagios is defined but set to inactive. |
| Property | Example | Description |
|---|---|---|
source_name | cfg-file-nagios | Name of this source. Must be unique. |
| order | 3 | Order in the merge algorithm of this source data. Look in the Synchronizer page for more information about it. |
| import_interval | 5 | Launch this source every import_inverval minutes. If you set it to 0, the module will never be launcher automatically |
| modules | cfg-file-nagios | The module to launch |
| enabled | 0 | 1 - Activate the source 0 - Viewed in the interface, but doesn't collect data nor import objects. |
| description | This source is about loading a | A description to show on the UI. |
Here is the list of parameters required by the module to be updated the in cfg file.
| Property | Default (if not set) | Description |
|---|---|---|
| module_name | cfg-file-nagios | Name of this module. Must be unique. |
| cfg_path | /etc/nagios/nagios.cfg | the path of the cfg file to import. |
The default column shows the value used by the module if the Shinken Enterprise Administrator didn't update it. |
Here there an example of the module definition:
define module{
# Shinken Enterprise. Lines added by import core. Do not remove it, it's used by Shinken Enterprise to update your objects if you re-import them.
_SE_UUID XXXXXXXXXXXXXXXX
_SE_UUID_HASH XXXXXXXXXXXXXXXX
# End of Shinken Enterprise part
module_name cfg-file-nagios
module_type cfg-file-import
cfg_path /etc/nagios/nagios.cfg
} |
When you have many source of source of configuration (for exemple 2 nagios to import in your shinken), we advise you to create 2 sources.
If you keep only one source, you will have to merge the 2 nagios in the same directory. You may have naming conflict...
To have an additional source,
Migrating from Nagios to Shinken Enterprise is very easy
You can enable the Nagios configuration file source in the file /etc/shinken/modules/cfg-file-nagios.cfg
All you need to do is to set the following parameters:
Note: you must copy all your Nagios configuration into the Shinken Enterprise.
Please also note that Nagios files are full path based, so you must put the Nagios configuration files in the same place than you did on your Nagios server.