events: set socket's SSL mode only if using HTTPS
events: set socket's SSL mode only if using HTTPS

multani/sensu-plugins-graphite,dalesit/sensu-plugins-graphite,ministryofjustice/sensu-plugins-graphite,sensu-plugins/sensu-plugins-graphite