centreon / nagiosToCentreon

Import your nagios config files into Centreon DB... And it rocks !
Apache License 2.0
9 stars 13 forks source link

Error import the centreon_clapi_import_commands #52

Open Catskan-zz opened 6 years ago

Catskan-zz commented 6 years ago

Hi,

I'm trying to import my all nagios configuration (services, objects, commands) in centreon but I have an error.

I ran $ perl nagios_reader_to_centreon_clapi.pl --config /usr/local/nagios/etc/ > /tmp/centreon_clapi_import_commands.txt and I have a file with 4 lines.

But, when I tried to import my file with /usr/share/centreon/www/modules/centreon-clapi/core/centreon -u admin -p password -i /tmp/centreon_clapi_import_commands.txt the command prompt return :

Line 1 : Resource is already tied to instance Line 2 : Resource is already tied to instance Line 3 : Resource is already tied to instance Line 4 : Resource is already tied to instance

Is it normal ?

Thanks you in advance :)

cgagnaire commented 6 years ago

Hi @Catskan, What do you have in your /usr/local/nagios/etc directory ?

ghost commented 6 years ago

hey brother, i have the same problem of Catskan. i want to import my nagos config to centreon using centreon clapi. => in my directory /usr/local/nagios/etc i have my files of configuration nagios.cfg ..... look at the pictures attached. thank you very much for your help sir. nagios configuration centreon_clapi nagiostocentreon