centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 274 forks source link

[apps::backup::rubrik::restapi::plugin] Token not clean and renewed #4854

Open OlivierKuziemko opened 9 months ago

OlivierKuziemko commented 9 months ago

Hi there,

I have a issue while using rubrik plugin with token management. The problem is located in request_api function where the token could be renewed when it expire but the cleanning/renew part is never called. In request_api_paginate function, there is an "$self->{output}->option_exit()" called when authentication is not good and it bypass the second part of request_api function " if (defined($self->{token}) && $self->{http}->get_code() < 200 || $self->{http}->get_code() >= 300) { ...."

To bypass the problem, I've just comment the "$self->{output}->option_exit()" and it works but it's not really clean.

lucie-dubrunfaut commented 4 months ago

Hello :)

Thank you for this feedback, we have taken this token issue into account and we will keep you informed of the progress of the fix.

brice-automatizit commented 3 months ago

same issue here