Comments (10)
can you provide the configuration you're using ?
from logstash-output-nagios_nsca.
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.
@jsvd any update on this? Do you need more info?
from logstash-output-nagios_nsca.
I met the same problem.Have you solved it?
from logstash-output-nagios_nsca.
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.
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.
@jsvd any news here? this seems to be a consistent failure as we can confirm the same bug here...
from logstash-output-nagios_nsca.
@usp-rol , fix from @para6666 works for me.
from logstash-output-nagios_nsca.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logstash-output-nagios_nsca.