ServerStatus"; # Process all services montiored. foreach( $configs['services'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= "{$serviceName}{$statusText}"; } # Process all services montiored. foreach( $configs['servicesKloud'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip2'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= "{$serviceName}{$statusText}"; } # Process all services montiored. foreach( $configs['servicesSpot'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip3'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= "{$serviceName}{$statusText}"; } # Process all services montiored. foreach( $configs['servicesKris'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip4'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= "{$serviceName}{$statusText}"; } # Finish service status table. $serverStatus .= ""; # File Complete. ?>