# Logstash to make plugin or not to make plugin for nagios

**URL:** <https://discuss.elastic.co/t/logstash-to-make-plugin-or-not-to-make-plugin-for-nagios/24465>\
**Category:** Logstash\
**Created:** [June 26, 2015, 9:33pm UTC](https://discuss.elastic.co/t/logstash-to-make-plugin-or-not-to-make-plugin-for-nagios/24465 "2015-06-26T21:33:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [June 26, 2015, 9:33pm UTC](https://discuss.elastic.co/t/logstash-to-make-plugin-or-not-to-make-plugin-for-nagios/24465/1 "2015-06-26T21:33:42Z")

</div>

So I am debating the idea of making a Nagios plugin but I am not sure what kind I should make

I am wondering how far I should take it,

- I think it would be really cool if I re-wrote the nagios "scheduler" and was able to parse the nagios config directly

- Just make a clone of logstash-input-exec and customize with Timeouts, return codes, etc

- Just make a codec to parse the EXEC return data as Nagios can get quirky

- Make a filter instead of a codec - which is where the Thresholds would reside

- Or figure out the integrate with the Nagios Broker protocol

Any Suggestions on the topic?

---

<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:51pm UTC](https://discuss.elastic.co/t/logstash-to-make-plugin-or-not-to-make-plugin-for-nagios/24465/2 "2016-05-06T20:51:47Z")

</div>

Hi Ed,  
can you provide me with a good reliable example to logstash.conf which used the nagios plug in for output in logstash release 2.3.1.  
For some reason my logstash conf is throwing me and error, and i have tried using host=\>, nagios\_host =\>  
which all error out not sure why.

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 }

}

---

<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:59am UTC](https://discuss.elastic.co/t/logstash-to-make-plugin-or-not-to-make-plugin-for-nagios/24465/3 "2017-07-06T04:59:00Z")

</div>


