# plugin like nagios check\_tcp

**URL:** <https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229>\
**Category:** Sensu Classic (EOL)\
**Created:** [August 4, 2014, 10:30pm UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229 "2014-08-04T22:30:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Paul](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nathan\_Paul](https://discourse.sensu.io/u/Nathan_Paul)\
**Post date:** [August 4, 2014, 10:30pm UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229/1 "2014-08-04T22:30:52Z")

</div>

Hi All,

I am working on moving Nagios to Sensu. What is the plugin that can replace check\_tcp plugin for Sensu.

Thanks for the help.

NP

---

<div class="post-metadata">

**Author:** ![Mojo](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mojo](https://discourse.sensu.io/u/Mojo)\
**Post date:** [August 4, 2014, 11:01pm UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229/2 "2014-08-04T23:01:17Z")

</div>

You can use your existing check\_tcp plugin. Sensu uses the same output format as Nagios, and supports its plugins.

Mojo

> **···**
>
> On Mon, Aug 4, 2014 at 3:30 PM, Nathan Paul [nathan.paul8@gmail.com](mailto:nathan.paul8@gmail.com) wrote:
> 
> > Hi All,
> > 
> > I am working on moving Nagios to Sensu. What is the plugin that can replace check\_tcp plugin for Sensu.
> > 
> > Thanks for the help.
> > 
> > NP

---

<div class="post-metadata">

**Author:** ![Sean\_Porter](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sean\_Porter](https://discourse.sensu.io/u/Sean_Porter)\
**Post date:** [August 4, 2014, 11:01pm UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229/3 "2014-08-04T23:01:23Z")

</div>

Hi Nathan,

Sensu uses the Nagios check plugin format/spec, so you should be able to use your Nagios plugins. The community repo does have a plugin called check-banner.rb, that most likely does what you’re looking for, as an alternative.

Sean.

> **···**
>
> On Aug 4, 2014 3:30 PM, “Nathan Paul” [nathan.paul8@gmail.com](mailto:nathan.paul8@gmail.com) wrote:
> 
> > Hi All,
> > 
> > I am working on moving Nagios to Sensu. What is the plugin that can replace check\_tcp plugin for Sensu.
> > 
> > Thanks for the help.
> > 
> > NP

---

<div class="post-metadata">

**Author:** ![Nathan\_Paul](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nathan\_Paul](https://discourse.sensu.io/u/Nathan_Paul)\
**Post date:** [August 4, 2014, 11:33pm UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229/4 "2014-08-04T23:33:20Z")

</div>

Thanks All. Appreciate the help.

> **···**
>
> On Mon, Aug 4, 2014 at 4:01 PM, Sean Porter [portertech@gmail.com](mailto:portertech@gmail.com) wrote:
> 
> > Hi Nathan,
> 
> > Sensu uses the Nagios check plugin format/spec, so you should be able to use your Nagios plugins. The community repo does have a plugin called check-banner.rb, that most likely does what you’re looking for, as an alternative.
> 
> > Sean.
> 
> > On Aug 4, 2014 3:30 PM, “Nathan Paul” [nathan.paul8@gmail.com](mailto:nathan.paul8@gmail.com) wrote:
> > 
> > > Hi All,
> > > 
> > > I am working on moving Nagios to Sensu. What is the plugin that can replace check\_tcp plugin for Sensu.
> > > 
> > > Thanks for the help.
> > > 
> > > NP

---

<div class="post-metadata">

**Author:** ![Josh\_Pasqualetto](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@Josh\_Pasqualetto](https://discourse.sensu.io/u/Josh_Pasqualetto)\
**Post date:** [August 5, 2014, 12:03am UTC](https://discourse.sensu.io/t/plugin-like-nagios-check-tcp/229/5 "2014-08-05T00:03:56Z")

</div>

You can also call out directly to commands in theory, e.g. your check is just:

ping -c 1 8.8.8.8 -W 1

Granted the output error might not be the most friendly, but it should work.

> **···**
>
> On Mon, Aug 4, 2014 at 5:33 PM, Nathan Paul \<nathan.paul8@gmail.com\> wrote:
> 
> > Thanks All. Appreciate the help.
> > 
> > On Mon, Aug 4, 2014 at 4:01 PM, Sean Porter \<portertech@gmail.com\> wrote:
> > 
> > > Hi Nathan,
> > > 
> > > Sensu uses the Nagios check plugin format/spec, so you should be able to  
> > > use your Nagios plugins. The community repo does have a plugin called  
> > > check-banner.rb, that most likely does what you're looking for, as an  
> > > alternative.
> > > 
> > > Sean.
> > > 
> > > On Aug 4, 2014 3:30 PM, "Nathan Paul" \<nathan.paul8@gmail.com\> wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I am working on moving Nagios to Sensu. What is the plugin that can  
> > > > replace check\_tcp plugin for Sensu.
> > > > 
> > > > Thanks for the help.
> > > > 
> > > > NP
