# Telegraf/Procstat Input Plugin

**URL:** https://community.influxdata.com/t/telegraf-procstat-input-plugin/22471
**Category:** Telegraf
**Created:** [November 10, 2021, 8:44am UTC](https://community.influxdata.com/t/telegraf-procstat-input-plugin/22471 "2021-11-10T08:44:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Influx\_Compensator](https://avatars.discourse-cdn.com/v4/letter/i/7cd45c/32.png) [@Influx\_Compensator](https://community.influxdata.com/u/Influx_Compensator)
#### Post date: [November 10, 2021, 8:44am UTC](https://community.influxdata.com/t/telegraf-procstat-input-plugin/22471/1 "2021-11-10T08:44:47Z")

</div>

Dear all,  
can someone please tell me if procstat\_lookup \> running would indicate if a process is running or not?  
Many thanks

---

<div class="post-metadata">

### Author: ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)
#### Post date: [November 12, 2021, 4:54pm UTC](https://community.influxdata.com/t/telegraf-procstat-input-plugin/22471/2 "2021-11-12T16:54:32Z")

</div>

@Influx_Compensator,  
Sorry I’m a little confused the procstat\_lookup is a measurement and running is a field for that measurement. Can you help me understand what you mean please? thank you.

---

<div class="post-metadata">

### Author: ![Influx\_Compensator](https://avatars.discourse-cdn.com/v4/letter/i/7cd45c/32.png) [@Influx\_Compensator](https://community.influxdata.com/u/Influx_Compensator)
#### Post date: [December 6, 2021, 6:43am UTC](https://community.influxdata.com/t/telegraf-procstat-input-plugin/22471/3 "2021-12-06T06:43:22Z")

</div>

hi there, also here thanks for your reply, @Anaisdg!

meanwhile i took the decision to utilize monit and therefore telegraf’s monit plugin. everything’s fine :)!

in my initial post, i was just trying to figure out if procstat\_lookup \> running would indicate if a process is running or not (“0” or “1”) before deploying to production. i’ve deployed a LXC container to test both the procstat-only approach and monit, together with its telegraf-module and decided to use the latter - even though it’s quite tricky, because there are two fields to monitor;

- `r["_measurement"] == "monit_process" > r["_field"] == "status_code" > r["host"] == "<whatever>" > r["status"] == " **running**"`
- `r["_measurement"] == "monit_process" > r["_field"] == "status_code" > r["host"] == "<whatever>" > r["status"] == " **failure**"`

so, to sum it up, i just wanted to know if the procstat plugin would have the capability of having one field that would tell “service is running or not”.
