Details

    • Type: Bug/Feature
    • Status: Resolved (View workflow)
    • Resolution: Duplicate
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None

      Description

      We updated to version 1.4.2 of logstash, using the official rpm package from the elasticsearch repository. After this update, we realized, the nagios_nsca plugin stopped working (stopped to output events to out icinga).

      After manualy updating lib/logstash/outputs/nagios_nsca.rb to commit 65af91d0158725fd18dc09897c6d73839efa47d0 and some debugging we found the following solution:

      Replace:

      Open3.popen3(*cmd) do |i, o, e|
      i.puts(message)
      i.close
      end

      with:

      Open3.popen3(*cmd) do |i, o, e, t|
      i.puts(message)
      i.close
      t.value
      end

      To us the problem seamed to be a timing problem because logstash is not waiting for the termination of the process.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Logstash Developers (Inactive)
                Reporter:
                Lucas Bremgartner
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: