Announcement

Collapse
No announcement yet.

Migrate from Nagios Core 4.3.4 to Centreon 2.8.15 - no host,services imported

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Migrate from Nagios Core 4.3.4 to Centreon 2.8.15 - no host,services imported

    I want to migrate from Nagios 4.3.4 to Centreon 2.8.15
    I followed the instructions from https://documentation.centreon.com/d...ocentreon.html

    On Nagios
    perl nagios_reader_to_centreon_clapi.pl --config /usr/local/nagios/etc/objects/ > /tmp/centreon_clapi_import_commands.txt
    After I run the perl script, the centreon_clapi_import_commands.txt is created, it contains all the Nagios objects but I receive the following message:
    Use of uninitialized value in concatenation (.) or string at nagios_reader_to_centreon_clapi.pl line 452.
    The line 452 is:
    if (defined($service->{'name'})) { push @{$clapi{STPL}}, "STPL;ADD;".$OPTION{'prefix'}.$service->{'name'}.";".$service->{'service_description'}.";".(defined($service->{'use'}) ? $OPTION{'prefix'}.$service->{'use'} : "generic-active-service-custom") };

    On Centreon
    /usr/share/centreon/bin/centreon -u admin -p centreon -i /tmp/centreon_clapi_import_commands.txt
    This import gives a lot of messages like:
    Object not found: for all the hosts and services from Nagios.

    The only objects imported in Centreon are the commands and users.
    How can I import the hosts and services?

    Please help. Thank you
Working...
X