def get
      uri = self.url
      http = Net::HTTP.new(uri.host, uri.port)

      if @ssl
        http.use_ssl = true
        http.verify_mode = OpenSSL::SSL::VERIFY_NONE
      end

      request = Net::HTTP::Get.new(uri.request_uri)

      if @auth
        request.basic_auth(@username, @password)
      end

      request["User-Agent"] = "Monit Ruby client #{Monit::VERSION}"

      begin
        response = http.request(request)
      rescue Errno::ECONNREFUSED
        return false
      end

      if (response.code =~ /\A2\d\d\z/)
        @xml = response.body
        return self.parse(@xml)
      else
        return false
      end
    end
def get
      uri = self.url
      http = Net::HTTP.new(uri.host, uri.port)

      if @ssl
        http.use_ssl = true
        http.verify_mode = OpenSSL::SSL::VERIFY_NONE
      end

      request = Net::HTTP::Get.new(uri.request_uri)

      if @auth
        request.basic_auth(@username, @password)
      end

      request["User-Agent"] = "Monit Ruby client #{Monit::VERSION}"

      begin
        response = http.request(request)
      rescue Errno::ECONNREFUSED
        return false
      end

      if (response.code =~ /\A2\d\d\z/)
        @xml = response.body
        return self.parse(@xml)
      else
        return false
      end
    end
Get the status from Monit.