# Problem to send information to Icinga

**URL:** <https://discuss.elastic.co/t/problem-to-send-information-to-icinga/151412>\
**Category:** Logstash\
**Created:** [October 8, 2018, 9:15am UTC](https://discuss.elastic.co/t/problem-to-send-information-to-icinga/151412 "2018-10-08T09:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soportesms](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@soportesms](https://discuss.elastic.co/u/soportesms)\
**Post date:** [October 8, 2018, 9:15am UTC](https://discuss.elastic.co/t/problem-to-send-information-to-icinga/151412/1 "2018-10-08T09:15:47Z")

</div>

Hello,

I have a problem to send events logstast-Icinga.  
My output:

output {

icinga {  
host =\> "X.X.X.X"  
user =\> "logstash"  
password =\> "xxxxxxx"  
ssl\_verify =\> "false"  
action =\> "process-check-result"  
action\_config =\> {  
exit\_status =\> "2"  
plugin\_output =\> "%{message}"  
author =\> "logstash"  
comment =\> "Logstash Output" }  
icinga\_host =\> "%{host}"  
icinga\_service =\> "mysql"  
}

Error:

[WARN] 2018-10-08 10:36:16.005 [Ruby-0-Thread-9@[main]\>worker3: :1] icinga - Request failed {:host=\>"X.X.X.X", :port=\>5665, :path=\>"/v1/actions/process-check-result?service=%7B%22name%22%3A%22debian%22%7D%21mysql", :body=\>"{"exit\_status":"2","plugin\_output":"2018-10-08 10:34:07 140314514966272 [Note] InnoDB: Shutdown completed; log sequence number 5388084","author":"logstash","comment":"Logstash Output"}", :error=\>#\<StandardError: StandardError\>}  
[WARN] 2018-10-08 10:36:16.012 [Ruby-0-Thread-9@[main]\>worker3: :1] icinga - Response: {:response\_code=\>"404", :response\_body=\>"{"error":404.0,"status":"No objects found."}"}

If I write icinga\_host =\> "%{hostname}" --\> same problem

Name of host is: debian

If I write: icinga\_host =\> "debian", the events it send OK.

Thanks

---

<div class="post-metadata">

**Author:** ![soportesms](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@soportesms](https://discuss.elastic.co/u/soportesms)\
**Post date:** [October 11, 2018, 8:18am UTC](https://discuss.elastic.co/t/problem-to-send-information-to-icinga/151412/2 "2018-10-11T08:18:41Z")

</div>

I keep doing tests but I can not solve it. It only works by typing the name of the PC but I can not do it using variables.  
Help me, please!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2018, 8:20am UTC](https://discuss.elastic.co/t/problem-to-send-information-to-icinga/151412/3 "2018-11-08T08:20:37Z")

</div>

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