# Nagioscheckbeat 'metric' data combined with 'check'?

**URL:** <https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370>\
**Category:** Beats\
**Created:** [October 26, 2019, 9:22pm UTC](https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370 "2019-10-26T21:22:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![safehouse](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@safehouse](https://discuss.elastic.co/u/safehouse)\
**Post date:** [October 26, 2019, 9:22pm UTC](https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370/1 "2019-10-26T21:22:22Z")

</div>

@PhaedrusTheGreek In this [post](https://discuss.elastic.co/t/configure-logstash-to-output-nagios-beats-to-nsca-nagios-logs/197418) we discussed how to successfully send nagioscheckbeat 'check' data to the nagios host, while sending the 'metric' data to Elasticsearch.

I am trying to figure out how to send Nagios 'perfdata' with the output type 'nagioscheck'. This is so that Nagios is adding the metric data to its perfdata file. I can't see a way to do this as the data types created by nagioscheckbeat separate the check status from the metric data into two types.

Can anyone suggest a way to achieve this? the data format which Nagios is looking for is outlined [here](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/perfdata.html), bu the essential format is:

status text followed by a pipe character (|), and then a string containing one or more performance data metrics

i.e.  
`PING ok - Packet loss = 0%, RTA = 0.80 ms | percent_packet_loss=0, rta=0.80`

Loving the functionality of nagioscheckbeat. Getting perfdata into the status checks would be amazing. I plan to continue to capture the data in Elsatic. I just need the perfdata in Nagios for old reports.

---

<div class="post-metadata">

**Author:** ![PhaedrusTheGreek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phaedrusthegreek/32/4884_2.png) [@PhaedrusTheGreek](https://discuss.elastic.co/u/PhaedrusTheGreek)\
**Post date:** [November 14, 2019, 7:05pm UTC](https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370/2 "2019-11-14T19:05:33Z")

</div>

Hi, this is an interesting request. I didn't consider that requirement, as the main functionality is meant to parse it out, but I think it would be an easy option to add. If you still want this feature, please make an enhancement request [in the repo](https://github.com/PhaedrusTheGreek/nagioscheckbeat/issues) and I would be glad to add it.

---

<div class="post-metadata">

**Author:** ![safehouse](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@safehouse](https://discuss.elastic.co/u/safehouse)\
**Post date:** [November 15, 2019, 2:47am UTC](https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370/3 "2019-11-15T02:47:20Z")

</div>

Thanks, Jay. I'll add this feature request now.

I plan to also use the metrics stored in Elastic. I have some data functions built into the backend of Nagios which I don't want to rewrite in the next few months so have this data would be a huge help.

Thanks for the great plugin!

---

<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:** [December 13, 2019, 4:51am UTC](https://discuss.elastic.co/t/nagioscheckbeat-metric-data-combined-with-check/205370/4 "2019-12-13T04:51:30Z")

</div>

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