Solution is obvious UN needs to contract Somali Pirates as Inspectors.
Pirates want money, UN needs experienced ship inspectors, it's a win-win situation.
Per a web search for Somali pirates:
"Somali pirates don't wear eye patches, and instead of swords they have RPGs (rocket-propelled grenades). They use small, fast speedboats to get around and work in crews of 10 or so. Once they find a good target, they launch hooks and rope ladders up to board the ship and overwhelm the crew. They often attack at night.
In 2008, 40 ships were successfully captured and ransoms were paid ranging from $500,000 to $2 million. That is quite the incentive for poor fishermen living in a war torn African country. Successful pirates live well. They marry beautiful women, drive around in big cars, build big houses, and buy increasingly sophisticated weapons. Somali pirates have accountants, lend money to businessmen, and are basically running the economy of the autonomous region of Puntland."
Since no one else can do it, hire them.