Update - I got so fed up I completely reinstalled. The server then worked ok for a week or so and then the same thing happened. Eventually I norrowed it down to my having max_check_attempts for my hosts set to 5. When I set this to 1 and restarted everything went back to normal. I’m not sure exactly why this worked but everything has been fine since then.