changed logic to check and start socat independent of collectd