Skip to main content

Hello,

 

since the centreon 21.04 version upgrade to 22.04 the API calls no longer work

404 "Unauthorized"

 

Thanks for your help

@Laurent 

An idea please?

 

Thanks

up


Hi @idinar , which API did you try to reach? with an admin account?


Hi @Laurent 

 

Indeed, when I add admin rights to the user in question it works

but before the upgrade to version 22.04 users who use the api

we just tick

Reach API Configuration and

Reach API Realtime  to yes

is there a change in the release?

 

Best,


Ok it was for CLAPI/Rest APIv1.

In Centreon Web 22.04.5 : https://docs.centreon.com/docs/releases/centreon-core/#security-fixes-1


Hi @Laurent 

 

Thanks for the quick feedback

question do I have to update to 22.04.5??

currently I have the central version and poller 22.04.1


Centreon-web is the web interface, it’s independent of Centreon Engine (scheduler)


Hi @Laurent 

 
I'm sorry I didn't understand well
currently centreon web 22.04.5
What should I do to fix my problem?
Thanks for your help

If you want to use CLAPI or Rest APIv1, you need to use an account with “admin” rights

If you wan to use Rest APIv2, you just need to configure “Reach API Configuration” or “Reach API Realtime”


Reply