I had the same problem (at least the same symptoms), drove me crazy, one third of my sensors wouldn't connect (same software and configs on them all) I finally tracked it down to a bad line in the allowed hosts ACL. I was allowing a specific host IP address, but used a netmask for a whole subnet.