Skip to main content
The current connector is for 3CX V18…. the current version of 3CX is on V20.0 Update 5, the connector does not work with this version 20.0 released a long time ago...it would be good to keep this connector up to date

Hello :)

In August 2024 we completed work to added support for authentication on versions higher than 18.0.5 and made the default values more explicit. Could you give us more informations about what doesn’t work with the version 20.0? We'll also will need data (anonymized outputs) from version 20 to be able to work on the improvements you're asking for. Would you be able to provide them?

Kind regards.


result fom command with debug mode

 

i have replace dns name and api-password :)

 su - centreon-engine
Dernière connexion : jeudi 27 février 2025 à 12:48:35 CET sur pts/0
~]$ /usr/lib/centreon/plugins//centreon_3cx_restapi.pl --plugin=apps::voip::3cx::restapi::plugin --mode=system --hostname='xxxxx.my3cx.fr' --port='443' --proto='https' --api-username='centreon' --api-password='xxxxxxxxxxxx' --3cx-version='20.0.5.506'  --unknown-status='' --warning-status='' --critical-status='%{error} =~ /true/' --warning-calls-active-usage='' --critical-calls-active-usage='' --warning-calls-active-free='' --critical-calls-active-free='' --warning-calls-active-usage-prct='' --critical-calls-active-usage-prct='' --warning-extensions-registered='' --critical-extensions-registered='' --debug
UNKNOWN: 404 Not Found
Version '20.0.5.506' identified as higher or equal to 18 update 5. Using new API.
======> request send
POST https://xxxxxx.fr:443/api/login
User-Agent: centreon::plugins::backend::http::useragent
Content-Type: application/json;charset=UTF-8

{"Username":"centreon","Password":"xxxxxxxxxxxxxx"}
======> response done
HTTP/1.1 404 Not Found
Connection: keep-alive
Date: Fri, 28 Feb 2025 14:31:24 GMT
Server: nginx
Content-Length: 0
Client-Date: Fri, 28 Feb 2025 14:31:25 GMT
Client-Peer: 185.98.20.215:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=Let's Encrypt/CN=R10
Client-SSL-Cert-Subject: /CN=callnextit.my3cx.fr
Client-SSL-Cipher: TLS_AES_256_GCM_SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Strict-Transport-Security: max-age=31536000
 

 

Regards

Jean-Francois


NewDiscussion ongoing

Hello :)

Thanks for your feedback. Could you give us the API information we need to update the plugin? (from the debug output you provided we only know that: “Version '20.0.5.506' identified as higher or equal to 18 update 5. Using new API.”). The API call route has probably changed and there may be other subtleties.

Kind regards.


Hello,

I have a 3CX account where I'm an admin. The best thing would be to schedule a call so we can take a look and test it.

regards

Jean-Francois


Declined since the endpoint disappeared from the 3CX API.


Discussion ongoingDeclined