|
|
|
@ -22,10 +22,10 @@ $up = $registry->getOrRegisterGauge(
|
|
|
|
|
$up->set(1, []);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$host = '192.168.178.55';
|
|
|
|
|
$port = 10011;
|
|
|
|
|
$user = rawurlencode('serveradmin');
|
|
|
|
|
$password = rawurlencode('4NReP1Wf');
|
|
|
|
|
$host = getenv('QUERY_HOST');
|
|
|
|
|
$port = getenv('QUERY_PORT');
|
|
|
|
|
$user = rawurlencode(getenv('QUERY_USER_NAME'));
|
|
|
|
|
$password = rawurlencode(trim(file_get_contents(getenv('QUERY_USER_PASSWORD_FILE'))));
|
|
|
|
|
|
|
|
|
|
$uri = 'serverquery://'.$user.':'.$password.'@'.$host.':'.$port.'/';
|
|
|
|
|
|
|
|
|
|