Commit ecfe6333 authored by Jean-Philippe Levy's avatar Jean-Philippe Levy

Add disable backend feature

parent 5585c466
......@@ -70,6 +70,13 @@ function getServicesStateNbr()
$socket_address = $socket_parts[1];
$socket_port = $socket_parts[2];
$socket_path = $socket_parts[3];
// check if socket disabled
if(isset($socket_parts[4])) {
continue;
}
// check if socket is up
if( checkHost($socket_type, $socket_address, $socket_port, $socket_path) ){
if($socket_port == -1){
$socket_port = "";
......@@ -145,6 +152,13 @@ function getHostsStateNbr()
$socket_address = $socket_parts[1];
$socket_port = $socket_parts[2];
$socket_path = $socket_parts[3];
// check if socket disabled
if(isset($socket_parts[4])) {
continue;
}
// check if socket is up
if( checkHost($socket_type, $socket_address, $socket_port, $socket_path) ){
if($socket_port == -1){
$socket_port = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment