Can't get logstash-output-icinga to work


(Hans) #1

Hello everybody, hope you can give m ea hand with this,

I have installed Logstash 6.6.0 some days ago. And everything is working except the icinga pluging
I have been testing the logstash-output-icinga and is giving me the following error:

[2019-02-12T17:16:09,676][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.6.0"}
[2019-02-12T17:16:18,560][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2019-02-12T17:16:19,965][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x6131edc6 sleep>"}
[2019-02-12T17:16:20,056][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2019-02-12T17:16:20,581][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-02-12T17:16:23,087][WARN ][logstash.outputs.icinga ] Request failed {:host=>"localhost", :port=>5665, :path=>"/v1/actions/process-check-result?service=EDM-F350%21jobstatus", :body=>"{"exit_status":"2","plugin_output":"19097-802\n\n"}", :error=>#<IOError: Broken pipe>}

If I try the connection with the Icinga2 API it works:
curl -k -u root:ricinga2api -H 'Accept: application/json' -X POST 'https://localhost:5665/v1/actions/process-check-result?service=hosttest01!servicetest' -d "{"exit_status":"1","plugin_output":"Placeholder"}" &

I get the following output:
root# {"results":[{"code":200.0,"status":"Successfully processed check result for object 'hosttest01!servicetest'."}]}

Can you give me a hand with this? I have seen the following post but I am not 100% sure if it applies to my error: https://github.com/Icinga/icinga2/issues/6799

Thanks guys!


(system) closed #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.