Migrating from Nagios to Shinken Enterprise is very easy. You can import your previous Nagios configuration using the cfg-file-nagios source.
Configuration
To define a nagios cfg source:
...
| Property | Default (if not set) | Description | |||
|---|---|---|---|---|---|
| module_name | cfg-file-nagios | FQDN (Fully Qualified Domain Name ) or IP Address of the vSphere server. | module_type | cfg-file-import | User used to connect to the vSphere serverof this module. Must be a read-only accountunique. |
| cfg_path | /etc/nagios/nagios.cfg | Password for the user accessthe path of the cfg file to import. |
| Info | ||
|---|---|---|
| ||
The default column shows the value used by the module if the Shinken Enterprise Administrator didn't set update it. |
Here there an example of the module definition:
| Code Block |
|---|
define module{
# Shinken module_nameEnterprise. Lines added by import sync-vmware
module_type sync-vmware
check_esx_path /var/lib/shinken/libexec/synchronizer/esx_discovery.pl
vcenter myesx.ovh.com
user admin
password XYZ
esx_templates esx
vm_templates vmware-vm
} |
...
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
} |
Having more than 1 cfg-file-nagios sources in the administration.
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,
- Copy etc/shinken/modules/cfg-file-nagios.cfg into an other cfg file name and configure it
- Then configure the source in the file /etc/shinken/sources/cfg-file-nagios.cfg
to enable the source and call the module configured in step 1. - Then you must declare the cfg-file-nagios source in the file /etc/shinken/synchronizers/synchronizer-master.cfg.
Migrating from Nagios to Shinken Enterprise is very easy
...