# SOLVED - Sensu plugins http\_check.rb is not working

**URL:** <https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178>\
**Category:** Sensu Plugins\
**Created:** [May 15, 2019, 8:52am UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178 "2019-05-15T08:52:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk00559179](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mk00559179](https://discourse.sensu.io/u/mk00559179)\
**Post date:** [May 15, 2019, 8:52am UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178/1 "2019-05-15T08:52:34Z")

</div>

I’ve install sensu go and seems working fine.

I am trying to monitor my external resources and I am following this guide, [https://docs.sensu.io/sensu-go/5.7/guides/monitor-external-resources/#using-a-proxy-entity-to-monitor-a-website](https://docs.sensu.io/sensu-go/5.7/guides/monitor-external-resources/#using-a-proxy-entity-to-monitor-a-website)

I’ve added ruby run time asset and sensu http plugin asset. I can see my asset using command sensuctl asset list.

But I am getting error in http check event like, /usr/bin/env: ‘ruby’: No such file or directory

But ruby is already installed in my system, Below ruby command is working fine for me

/docker/sensu# ruby --version  
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86\_64-linux-gnu]

:/var/log/sensu# /usr/bin/env ruby --version  
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86\_64-linux-gnu]

Sensu go version is 5.7 using on Ubuntu 18.04.1 LTS

let me know what I am doing wrong here.

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [May 15, 2019, 4:02pm UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178/2 "2019-05-15T16:02:00Z")

</div>

Hello,  
which platform are you using for the runtime?

Alpine, Debian or Centos?

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [May 15, 2019, 4:42pm UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178/3 "2019-05-15T16:42:23Z")

</div>

Checking really quick… most likely what is happening is the filter definition in the asset config provided by Bonsai is too tight and the asset is not matching the filtering rules.

It’s definitely a good idea to visually inspect the asset configuration you download from Bonsai and make sure the filtering rules are correct for your intended use. The default filtering rules are a best effort. In this case they are probably overly tight. I’ve filed an issue in github to address it. Hopefully the next release of the asset will include default filters that work for Ubuntu without having to be adjusted.

Here’s the new issue for reference:

> <https://github.com/sensu/sensu-ruby-runtime/issues/9>

---

<div class="post-metadata">

**Author:** ![mk00559179](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mk00559179](https://discourse.sensu.io/u/mk00559179)\
**Post date:** [May 16, 2019, 3:43am UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178/4 "2019-05-16T03:43:51Z")

</div>

Yes I’ve change filter to entity.system.platform\_family == ‘debian’ and it is working fine now.

Thanks for your help

---

<div class="post-metadata">

**Author:** ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/aaronsachs/32/47_2.png) [@aaronsachs](https://discourse.sensu.io/u/aaronsachs)\
**Post date:** [May 29, 2019, 3:44pm UTC](https://discourse.sensu.io/t/solved-sensu-plugins-http-check-rb-is-not-working/1178/5 "2019-05-29T15:44:12Z")

</div>


