Your symptoms ave very characteristic for right urinary tract inflammation or stones (back pain
radiating to same side groin especially when associated with frequent urinating and burning during urinating). You should have simple urine test which should tell if you have an inflammation or stones (urine test might be negative when there are stones in kidney without infection) and abdomen ultrasound
to see if there is no hydronephrosis
However, according to your surgery history there is always a chance that your hernia
has recurred and urinary tract infection
is just a coexisting disease, that is why groin ultrasound might be necessary. Moreover, there is alway a chance of intra abdomen adhesions (after surgeries) and your intestines gets partially obstructed. So if all tests will occur normal, abdomen X-ray should be performed and intestine contrast CT if necessary.
hope this will help