Skip to main content

API problem since centreon 22.04 upgrade

  • Oct 3, 2022 3:48 PM UTC
  • 9 replies
  • 146 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
  • Builder *
  • Oct 3, 2022 4:11 PM UTC

@Laurent 

An idea please?

 

Thanks

Forum|alt.badge.img+6
  • Author
  • Builder *
  • Oct 4, 2022 9:24 AM UTC

up


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Oct 4, 2022 10:55 AM UTC

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


Forum|alt.badge.img+6
  • Author
  • Builder *
  • Oct 4, 2022 11:07 AM UTC

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
  • Oct 4, 2022 11:56 AM UTC

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
  • Builder *
  • Oct 4, 2022 12:07 PM UTC

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
  • Oct 4, 2022 12:22 PM UTC

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


Forum|alt.badge.img+6
  • Author
  • Builder *
  • Oct 4, 2022 12:33 PM UTC

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
  • Oct 4, 2022 12:57 PM UTC

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”