# TCP check via remote instance , similar to nagios check\_tcp

**URL:** <https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304>\
**Category:** Sensu Classic (EOL)\
**Created:** [November 5, 2014, 9:31am UTC](https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304 "2014-11-05T09:31:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhinakaran\_gunasekar](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@dhinakaran\_gunasekar](https://discourse.sensu.io/u/dhinakaran_gunasekar)\
**Post date:** [November 5, 2014, 9:31am UTC](https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304/1 "2014-11-05T09:31:48Z")

</div>

Hi all,

How to do external port check from sensu server . i dont want to place the script in client for this check , if i place the script in client, it will monitor only on localhost connectivty but might be a problem in sec group ,

I want to check other machine port from sensu server

Thanks

Dhinakaran

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [November 5, 2014, 3:07pm UTC](https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304/2 "2014-11-05T15:07:39Z")

</div>

All sensu checks are executed from the client:  
[http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client](http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client)

Your sensu server may also serve as a client, you could run your check  
from there.

> **···**
>
> On Wed, Nov 5, 2014 at 1:31 AM, dhinakaran gunasekaran \<dhinakaran.aws@gmail.com\> wrote:
> 
> > Hi all,
> > 
> > How to do external port check from sensu server . i dont want to place the  
> > script in client for this check , if i place the script in client, it will  
> > monitor only on localhost connectivty but might be a problem in sec group ,
> > 
> > I want to check other machine port from sensu server
> > 
> > Thanks
> > 
> > Dhinakaran

---

<div class="post-metadata">

**Author:** ![dhinakaran\_gunasekar](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@dhinakaran\_gunasekar](https://discourse.sensu.io/u/dhinakaran_gunasekar)\
**Post date:** [November 6, 2014, 1:11pm UTC](https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304/3 "2014-11-06T13:11:59Z")

</div>

Thanks Anderson

Please provide some work around for , how to check remote port check . from server A i want to check server b 8080 port is up or not ?

Thanks

Dhinakaran

> **···**
>
> On Wednesday, November 5, 2014 8:37:41 PM UTC+5:30, Kyle Anderson wrote:
> 
> > All sensu checks are executed from the client:
> > 
> > [http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client](http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client)
> > 
> > Your sensu server may also serve as a client, you could run your check
> > 
> > from there.
> > 
> > On Wed, Nov 5, 2014 at 1:31 AM, dhinakaran gunasekaran \> \> [dhinaka...@gmail.com](mailto:dhinaka...@gmail.com) wrote:
> > 
> > > Hi all,
> > 
> > > 
> > 
> > > How to do external port check from sensu server . i dont want to place the
> > 
> > > script in client for this check , if i place the script in client, it will
> > 
> > > monitor only on localhost connectivty but might be a problem in sec group ,
> > 
> > > 
> > 
> > > I want to check other machine port from sensu server
> > 
> > > 
> > 
> > > Thanks
> > 
> > > 
> > 
> > > Dhinakaran

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [November 6, 2014, 3:04pm UTC](https://discourse.sensu.io/t/tcp-check-via-remote-instance-similar-to-nagios-check-tcp/304/4 "2014-11-06T15:04:50Z")

</div>

Configure "check\_tcp -H ServerB -p 8080" on server A. (standalone check)

> **···**
>
> On Thu, Nov 6, 2014 at 5:11 AM, dhinakaran gunasekaran \<dhinakaran.aws@gmail.com\> wrote:
> 
> > Thanks Anderson
> > 
> > Please provide some work around for , how to check remote port check . from  
> > server A i want to check server b 8080 port is up or not ?
> > 
> > Thanks
> > 
> > Dhinakaran
> > 
> > On Wednesday, November 5, 2014 8:37:41 PM UTC+5:30, Kyle Anderson wrote:
> > 
> > > All sensu checks are executed from the client:  
> > > [http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client](http://sensuapp.org/docs/0.16/faq#do-checks-need-to-exist-on-the-client)
> > > 
> > > Your sensu server may also serve as a client, you could run your check  
> > > from there.
> > > 
> > > On Wed, Nov 5, 2014 at 1:31 AM, dhinakaran gunasekaran \>\> \<dhinaka...@gmail.com\> wrote:  
> > > \> Hi all,  
> > > \>  
> > > \> How to do external port check from sensu server . i dont want to place  
> > > \> the  
> > > \> script in client for this check , if i place the script in client, it  
> > > \> will  
> > > \> monitor only on localhost connectivty but might be a problem in sec  
> > > \> group ,  
> > > \>  
> > > \> I want to check other machine port from sensu server  
> > > \>  
> > > \> Thanks  
> > > \>  
> > > \> Dhinakaran
