logstash-plugins / logstash-output-zabbix

Zabbix output plugin for Logstash 1.5+
Apache License 2.0
24 stars 11 forks source link

logstash crashes when zabbix-server is restarted. #16

Closed giger85 closed 4 years ago

giger85 commented 8 years ago

Hi

I've been installed logstash 2.3.1 and zabbix output plugin. When I restarted zabbix server, some logstash instances crashed.

Here is error log.

IOError: Connection reset by peer
                  read at org/jruby/RubyIO.java:3073
              tcp_send at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-2.0.2/lib/logstash/outputs/zabbix.rb:206
                  open at org/jruby/RubyIO.java:1183
              tcp_send at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-2.0.2/lib/logstash/outputs/zabbix.rb:203
        send_to_zabbix at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-2.0.2/lib/logstash/outputs/zabbix.rb:226
               timeout at org/jruby/ext/timeout/Timeout.java:115
        send_to_zabbix at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-2.0.2/lib/logstash/outputs/zabbix.rb:225
               receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-2.0.2/lib/logstash/outputs/zabbix.rb:242
         multi_receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/outputs/base.rb:83
                  each at org/jruby/RubyArray.java:1613
         multi_receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/outputs/base.rb:83
  worker_multi_receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/output_delegator.rb:130
  worker_multi_receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/output_delegator.rb:129
         multi_receive at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/output_delegator.rb:114
          output_batch at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:301
                  each at org/jruby/RubyHash.java:1342
          output_batch at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:301
           worker_loop at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:232
         start_workers at /home1/irteam/apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:201

I've been read PR https://github.com/logstash-plugins/logstash-output-zabbix/pull/9

I guess that this issue hasn't solved yet.

Please check this issue.