--- alx-src/branches/alx-web-070/show.php 2015/09/11 15:21:11 7121
+++ alx-src/branches/alx-web-070/show.php 2015/09/11 15:35:13 7124
@@ -354,7 +354,16 @@
$state = 'Off';
if(count($conn)>0)
{
- if($retval==0) $state = 'On';
+ if($retval==0)
+ {
+ // first try mcore, then get ssh
+ $ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout);
+ if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout);
+ if($ping_retval==0)
+ {
+ $state = 'On';
+ }
+ }
}
echo '
';