Skip to main content

Hi,

 

I have a problem using the APIs.

I created my API with the admin account

curl -s -d "username=admin&password=MyPassword" -H "Content-Type: application/x-www-form-urlencoded" -X POST https://Website/centreon/api/index.php?action=authenticate
{"authToken": "MyAPI"}

 

curl -s -H ‘X-AUTH-TOKEN:'MyAPI’' -H “Content-Type: application/json” -X GET 'https://Website/centreon/api/latest/configuration/monitoring-servers/7/generate-and-reload'

 

It returns the error 


{"code":500, "message": "There was an inconsistency error in the exported files - please use the legacy export menu to troubleshoot"}

I'm using Centreon version 24.10.7.

 

 

 

There's an IP to access the web interface in front of a reverse proxy for the central unit. Another IP is assigned to the central unit for communication with pollers.

I don't understand where my problem comes from.

Hello,

Same issue for me, i’m using Centreon 24.04.15. 

Have you found a solution? 

Thank’s


Issue resolved, ive chown centreon: in /var/log/centreon.

Here Export configuration shortcut --> error | Community


Reply