# How to use one check, but apply this check for two instance that running on one host?

**URL:** <https://discourse.sensu.io/t/how-to-use-one-check-but-apply-this-check-for-two-instance-that-running-on-one-host/3130>\
**Category:** Getting Started\
**Tags:** sensu-go, checks\
**Created:** [June 12, 2023, 2:13pm UTC](https://discourse.sensu.io/t/how-to-use-one-check-but-apply-this-check-for-two-instance-that-running-on-one-host/3130 "2023-06-12T14:13:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruslanglaznyov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/ruslanglaznyov/32/844_2.png) [@ruslanglaznyov](https://discourse.sensu.io/u/ruslanglaznyov)\
**Post date:** [June 12, 2023, 2:13pm UTC](https://discourse.sensu.io/t/how-to-use-one-check-but-apply-this-check-for-two-instance-that-running-on-one-host/3130/1 "2023-06-12T14:13:32Z")

</div>

For instance:  
I have VPS and on this VPS I have two instances on nginx running on 5000 port and 3000 port.  
Also, I have an agent installed on this vps.  
I need the configuration to check these two instances on the same host.  
How can I do that with nginx-check asset?  
I really appreciate any help you can provide.  
[https://bonsai.sensu.io/assets/sensu/nginx-check](https://bonsai.sensu.io/assets/sensu/nginx-check)

---

<div class="post-metadata">

**Author:** ![JustinToo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/justintoo/32/850_2.png) [@JustinToo](https://discourse.sensu.io/u/JustinToo)\
**Post date:** [June 20, 2023, 7:46pm UTC](https://discourse.sensu.io/t/how-to-use-one-check-but-apply-this-check-for-two-instance-that-running-on-one-host/3130/2 "2023-06-20T19:46:33Z")

</div>

Hi Ruslan, 👋

I am a community volunteer in the Sensu Community Forum. I immediately thought of having two separate checks, one for each port. Is that something that would work for you?

---

<div class="post-metadata">

**Author:** ![ruslanglaznyov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/ruslanglaznyov/32/844_2.png) [@ruslanglaznyov](https://discourse.sensu.io/u/ruslanglaznyov)\
**Post date:** [June 20, 2023, 8:08pm UTC](https://discourse.sensu.io/t/how-to-use-one-check-but-apply-this-check-for-two-instance-that-running-on-one-host/3130/3 "2023-06-20T20:08:32Z")

</div>

I think it’s not what I need.  
because let’s imagine I have blockchain 100 tendermint nodes running over the different machines. On one machine I have several tendermint nodes on another 2 and so on. I have tendermint check.  
With this approach, I need 100 checks configuration. It’s hard to manage because it will blow my monitoring as code repo.  
I found [GitHub - sensu/sensu-check-multiplexer](https://github.com/sensu/sensu-check-multiplexer#usage-examples), I think that’s what I need that will allow me to split one check on separate events. So I need to keep only one check in my monitoring as a code repo.  
Thanks for your help 🙂
