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
312 stars 275 forks source link

[apps::backup::rubrik::restapi::plugin] mode jobs #4552

Closed ritouret closed 1 year ago

ritouret commented 1 year ago

Hello,

The API is too long to answer with 500 servers backuped : UNKNOWN : (Process Timeout) The goal is 900 servers backuped. At this time, it's not usable.

Is it possible to add two options on this mode : 1- first option to register the API answer in a retention file : this service will be executed each hour and would be associated to the RUBRIK Cluster. It would be --write-retention-file=<PATH/filename> for example. 2- second option to use the retention file instead of API to know the last backup for each server : one service per server executed each 4 hours. It would be --read-retention-file=<PATH/filename> for example.

Thanks

ritouret commented 1 year ago

There is a parameter should also help : /api/v1/job_monitoring?limit=1000

By default, there is only 25 jobs per page. 1000 is the max limit value.

Actually, there is more than 5000 jobs in the last 24h ...

should you add also the parameter limit into this mode ?

Finally, the parameter --timeout does not work.

Thanks

garnier-quentin commented 1 year ago

https://github.com/centreon/centreon-plugins/pull/4566