Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

[2.8.11] CLAPI Import not working #5541

Closed
itsul opened this issue Aug 11, 2017 · 1 comment
Closed

[2.8.11] CLAPI Import not working #5541

itsul opened this issue Aug 11, 2017 · 1 comment

Comments

@itsul
Copy link

itsul commented Aug 11, 2017


BUG REPORT INFORMATION

Centreon Web version: 2.8.11

Centreon Engine version: 1.7.2

Centreon Broker version: 3.0.8

OS: CentOS 7.3

Additional environment details (AWS, VirtualBox, physical, etc.): Physical

Steps to reproduce the issue:
1.Export configuration with CLAPI:
centreon -u admin -p xxx -e > /tmp/config.txt

2.Import the configuration (on a fresh installation for example):
centreon -u admin -p xxx -i /tmp/config.txt

Describe the results you received:
The import aborts with the following PHP error:
PHP Fatal error: Class '\CentreonClapi\centreon' not found in /usr/share/centreon/www/class/centreon-clapi/centreonAPI.class.php on line 840

Describe the results you expected:
The config dump will be imported without error.

Additional information you think important (e.g. issue happens only occasionally):
The problem is the first line in the dump:
{OBJECT_TYPE};{COMMAND};{PARAMETERS}
If I delete this, importing is working without a problem.
So the parsing seems to have a problem with the header line.

@lpinsivy lpinsivy added this to the 2.8.12 milestone Aug 17, 2017
@lpinsivy
Copy link
Contributor

Solved by commit 5805a59

kduret added a commit that referenced this issue Aug 24, 2017
export header was deleted, but api did not work anymore

Refs: #5541
kduret added a commit that referenced this issue Aug 24, 2017
export header was deleted, but api did not work anymore

Refs: #5541
kduret added a commit that referenced this issue Aug 24, 2017
export header was deleted, but api did not work anymore

Refs: #5541
MatthieuMan pushed a commit that referenced this issue Aug 25, 2017
export header was deleted, but api did not work anymore

Refs: #5541
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants