# Logstash 2.3.1, my logstash.conf throwing error as i try to connect to remote nagios core which uses nagios output pluting

**URL:** <https://discuss.elastic.co/t/logstash-2-3-1-my-logstash-conf-throwing-error-as-i-try-to-connect-to-remote-nagios-core-which-uses-nagios-output-pluting/49435>\
**Category:** Logstash\
**Created:** [May 6, 2016, 8:06pm UTC](https://discuss.elastic.co/t/logstash-2-3-1-my-logstash-conf-throwing-error-as-i-try-to-connect-to-remote-nagios-core-which-uses-nagios-output-pluting/49435 "2016-05-06T20:06:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbdickson2](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rbdickson2](https://discuss.elastic.co/u/rbdickson2)\
**Post date:** [May 6, 2016, 8:06pm UTC](https://discuss.elastic.co/t/logstash-2-3-1-my-logstash-conf-throwing-error-as-i-try-to-connect-to-remote-nagios-core-which-uses-nagios-output-pluting/49435/1 "2016-05-06T20:06:33Z")

</div>

below is my logstash.conf file along with error I am receiving from the logs once logstash is bounced to pick up the new config file. Can some one provide or give some logstash conf example real world code using Nagios plugin from logstash release 2.3.1. Thank you.

input {

```
file {

    path => "/opt/app/logstash/apache-test.log"

    start_position

```

=\> "beginning"

```
}

```

}

output {

```
nagios {

   nagios_host =>

```

"[zltvxxxx.vci.xxx.com](http://zltvxxxx.vci.xxx.com)"

```
   nagios_service =>

```

"LOGSTASH-POC-TEST"

}

```
#elasticsearch { }

stdout { codec => rubydebug }

```

}

timestamp=\>"2016-05-06T12:41:32.041000-0700",  
:message=\>"Unknown setting 'nagios\_host' for nagios",  
:level=\>:error}

{:timestamp=\>"2016-05-06T12:41:32.043000-0700",  
:message=\>"Unknown setting 'nagios\_service' for nagios",  
:level=\>:error}

{:timestamp=\>"2016-05-06T12:41:32.047000-0700",  
:message=\>"Pipeline aborted due to error",  
:exception=\>#\<LogStash::ConfigurationError: Something is wrong with your  
configuration.\>, :backtrace=\>["/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in  
`config_init'", "/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/outputs/base.rb:63:in`initialize'", "/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/output\_delegator.rb:74:in  
`register'", "/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:181:in`start\_workers'", "org/jruby/RubyArray.java:1613:in `each'", "/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:181:in`start\_workers'",  
"/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:136:in  
`run'", "/opt/app/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/agent.rb:465:in`start\_pipeline'"], :level=\>:error}

{:timestamp=\>"2016-05-06T12:41:35.049000-0700",  
:message=\>"stopping pipeline", :id=\>"main"}

---

<div class="post-metadata">

**Author:** ![fbaligand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fbaligand/32/5657_2.png) [@fbaligand](https://discuss.elastic.co/u/fbaligand)\
**Post date:** [May 6, 2016, 9:04pm UTC](https://discuss.elastic.co/t/logstash-2-3-1-my-logstash-conf-throwing-error-as-i-try-to-connect-to-remote-nagios-core-which-uses-nagios-output-pluting/49435/2 "2016-05-06T21:04:37Z")

</div>

As defined in nagios plugin doc, [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-nagios.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-nagios.html), "nagios\_host" and "nagios\_service" are not valid plugin options, but must be defined as fields in each **event**.

---

<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:** [July 6, 2017, 4:58am UTC](https://discuss.elastic.co/t/logstash-2-3-1-my-logstash-conf-throwing-error-as-i-try-to-connect-to-remote-nagios-core-which-uses-nagios-output-pluting/49435/3 "2017-07-06T04:58:58Z")

</div>


