Skip to main content

API problem since centreon 22.04 upgrade

  • October 3, 2022
  • 9 replies
  • 114 views

Forum|alt.badge.img+6

Hello,

 

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

404 "Unauthorized"

 

Thanks for your help

9 replies

Forum|alt.badge.img+6
  • Author
  • Steward **
  • October 3, 2022

@Laurent 

An idea please?

 

Thanks

Forum|alt.badge.img+6
  • Author
  • Steward **
  • October 4, 2022

up


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • October 4, 2022

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


Forum|alt.badge.img+6
  • Author
  • Steward **
  • October 4, 2022

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,


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • October 4, 2022

Ok it was for CLAPI/Rest APIv1.

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


Forum|alt.badge.img+6
  • Author
  • Steward **
  • October 4, 2022

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


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • October 4, 2022

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


Forum|alt.badge.img+6
  • Author
  • Steward **
  • October 4, 2022

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

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • October 4, 2022

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”