centreon / centreon-clapi

Centreon CLAPI Module
14 stars 14 forks source link

Bug, or something I'm doing wrong? #357

Open anomaly0617 opened 7 years ago

anomaly0617 commented 7 years ago

Hi all,

Migrating from Nagios with Centreon v2.4.2 to Centreon Core v2.8.2.

I did an export of my data from the old Centreon server. Then I attempted an import of my data into the new one. Not surprisingly, all did not go as planned. That's OK, I didn't expect a miracle.

I was able to get Commands, Contacts, Contact Groups, Host Groups, Host Templates, Hosts, Time Periods, and Service Templates to install. But Services... nope, no luck. So, I isolated one service from the rest in the file clapi_service1.txt, and then imported it using the line

/usr/share/centreon/www/modules/centreon-clapi/core/centreon -u admin -p [password] -i clapi_services1.txt

Which outputs the same as above:

Line 2 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 3 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 4 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 5 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 6 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 7 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 8 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP
Line 9 : Object not found:bpp-001-212-bppbarcodesys/Connectivity FTP

Not done yet, I then went into the Centron admin console and manually added this service. I associated it with the host (which did exist!), and set all the settings. Saved it, reloaded configuration, and all works fine.

So, I'm not sure if this is a bug or not. What would cause it to report "Object not found" if the host/object exists in Centreon?

Thanks, in advance!