Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

check external url + improve fail message #5722

Merged
merged 3 commits into from
Sep 29, 2017
Merged

check external url + improve fail message #5722

merged 3 commits into from
Sep 29, 2017

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Sep 29, 2017

No description provided.

$restHttpLib = new \CentreonRestHttp();
$restHttpLib->setProxy($proxyAddress, $proxyPort);
$restHttpLib->call($testUrl);
$outcome = true;
$message = _('Connection Successful');
} catch (\Exception $e) {
$outcome = false;
$message = $e->getMessage();
$message = _('Connection failed to imp portal (') . $e->getMessage() . ')';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be more explicit for users that are not familiar with Centreon ?

Something like "Could not establish connection to Centreon IMP servers (lalala".

@ganoze ganoze merged commit 79483e9 into 2.8.x Sep 29, 2017
@ganoze ganoze deleted the proxyCheck branch September 29, 2017 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants