GithubHelp home page GithubHelp logo

Comments (10)

jsvd avatar jsvd commented on June 9, 2024

can you provide the configuration you're using ?

from logstash-output-nagios_nsca.

andreasticket avatar andreasticket commented on June 9, 2024
FROM docker.elastic.co/logstash/logstash-oss:6.1.2

USER root:root
RUN yum install wget -y
RUN yum -y install epel-release

# Install NSCA client
RUN wget --output-document=nsca-client-2.9.2-1.el7.x86_64.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nsca-client-2.9.2-1.el7.x86_64.rpm
RUN yum -y localinstall nsca-client-2.9.2-1.el7.x86_64.rpm

# Logstash
USER logstash:logstash
RUN rm -f /usr/share/logstash/pipeline/logstash.conf
COPY --chown=logstash:logstash pipeline/ /usr/share/logstash/pipeline/
COPY --chown=logstash:logstash config/ /usr/share/logstash/config/
RUN bin/logstash-plugin install logstash-output-nagios_nsca


Pipeline config

input {
  tcp {
    port => 3334
    codec => "json_lines"
    tags => ["tcpLogs"]
  }
}

output {
  if [NagiosHost] {
    nagios_nsca {
      host => "#ip"
      send_nsca_config => "/usr/share/logstash/config/send_nsca.cfg"
      nagios_service => "%{jobName} %{MarketPlace}"
      nagios_host => "%{NagiosHost}"
			nagios_status => "%{NagiosStatus}"
			message_format => "%{message}"
    }
  }
}

from logstash-output-nagios_nsca.

andreasticket avatar andreasticket commented on June 9, 2024

@jsvd any update on this? Do you need more info?

from logstash-output-nagios_nsca.

liuthree avatar liuthree commented on June 9, 2024

I met the same problem.Have you solved it?

from logstash-output-nagios_nsca.

para6666 avatar para6666 commented on June 9, 2024

Hi,

change in the "nagios_nsca.rb"
config :port, :validate => :number, :default => 5667

to

config :port, :validate => :string, :default => 5667

of course you have to change the port config to:
port => "3334"

not sure if this a good idea, but it works

from logstash-output-nagios_nsca.

joschi99 avatar joschi99 commented on June 9, 2024

same problem on Logstash 6.2.4. Any idea how to resolve? I tried to change in "nagios_nsca.rb" from ":number" -> ":string", but always the same issue.

from logstash-output-nagios_nsca.

usp-rol avatar usp-rol commented on June 9, 2024

@jsvd any news here? this seems to be a consistent failure as we can confirm the same bug here...

from logstash-output-nagios_nsca.

tkorochka avatar tkorochka commented on June 9, 2024

@usp-rol , fix from @para6666 works for me.

from logstash-output-nagios_nsca.

para6666 avatar para6666 commented on June 9, 2024

@joschi99
Did you changed the port part in the output to a String?
port => "5667"

and did you restarted Logstash completely?

from logstash-output-nagios_nsca.

usp-rol avatar usp-rol commented on June 9, 2024

sure, we can also confirm the workaround. but still it remains logstash 6.2 (at least) not supporting this plugin anymore (without making changes to ruby files, yes).

so the only issue here not making any progress was #13
I hope this can be solved (merged) then. unfortunately jenkins tests are failing on current master branch (not really caused by the change from #13)

from logstash-output-nagios_nsca.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.