I have a 20 ton press ( a 5 ton hydraulic jack would work ) place it between 2 blocks of wood bend up and press it past center ( past being straight) aprox. 1/4" or so let the pressure of . I keeping pressing and let letting off until it looks straight. Then if you set something up to hold each end eg. 2 blocks of wood with V's cut in it to support each end then set something next to the rod in the center and slowly turn it how close to straight it is will show up. You can use a dial indicator like the do in machine shops to get it within a few thou. but for my tractor I've only done it as described and never had a leak or problem. I've had 2 large rams with very slight bends done it machine shops and watching them decide I could do my own when it came to the tractor.
View attachment 501745 This is a pic. of 1 I had straightened a few yrs. ago they got it within 5 thou. which is good enough a large industrial ram like this can explode it pushed to far. Hope this info is of benefit to you & I will try and answer any more ? you may have regarding this.