Add an argument "max_retry" to ensure_api_call of ZabbixBenchmark.