 '.$port_count.'
 '.$port_count.' '.$sensor_count;
        }
    }
    else {
    }
    $response[] = array(
        'extra'    => $extra,
        'msg'      => $msg,
        'icon'     => $image,
        'hostname' => $hostname,
        'ports'    => $col_port,
        'hardware' => $platform,
        'os'       => $os,
        'uptime'   => $uptime,
        'actions'  => $actions,
    );
}//end foreach
$output = array(
    'current'  => $current,
    'rowCount' => $rowCount,
    'rows'     => $response,
    'total'    => $total,
);
echo _json_encode($output);
 '.$sensor_count;
        }
    }
    else {
    }
    $response[] = array(
        'extra'    => $extra,
        'msg'      => $msg,
        'icon'     => $image,
        'hostname' => $hostname,
        'ports'    => $col_port,
        'hardware' => $platform,
        'os'       => $os,
        'uptime'   => $uptime,
        'actions'  => $actions,
    );
}//end foreach
$output = array(
    'current'  => $current,
    'rowCount' => $rowCount,
    'rows'     => $response,
    'total'    => $total,
);
echo _json_encode($output);