# Sensu-plugins-supervisor

**URL:** <https://discourse.sensu.io/t/sensu-plugins-supervisor/1729>\
**Category:** Sensu Plugins\
**Created:** [April 23, 2020, 1:06pm UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729 "2020-04-23T13:06:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkpoah](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@arkpoah](https://discourse.sensu.io/u/arkpoah)\
**Post date:** [April 23, 2020, 1:06pm UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/1 "2020-04-23T13:06:12Z")

</div>

Hi,

I need checks for supervisor, there are not on Bonsai.  
I tried migrate them from [https://github.com/sensu-plugins/sensu-plugins-supervisor](https://github.com/sensu-plugins/sensu-plugins-supervisor) following documentation with goreleaser and this skeleton : [https://github.com/sensu/sensu-go-plugin/](https://github.com/sensu/sensu-go-plugin/)

I succeeded to create release with tar.gz asset, but binaries are not inside… I get just one which is not the check.

I have no much knowledge about go, is there a procedure to migrate a plugin from old sensu-plugins ?  
Or is somebody can create this asset ? 🙏

Thanks !

---

<div class="post-metadata">

**Author:** ![todd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/todd/32/936_2.png) [@todd](https://discourse.sensu.io/u/todd)\
**Post date:** [April 23, 2020, 3:35pm UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/2 "2020-04-23T15:35:01Z")

</div>

In briefly looking, that plugin hasn’t really been touched in a while and the README points to issues building with Ruby 2.3 and 2.4.1 (the basis we use for building Bonsai assets). However, we will take a look at this soon and see if we can get it ported over.

---

<div class="post-metadata">

**Author:** ![todd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/todd/32/936_2.png) [@todd](https://discourse.sensu.io/u/todd)\
**Post date:** [April 27, 2020, 10:23pm UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/3 "2020-04-27T22:23:09Z")

</div>

@arkpoah I’m still looking at this, I am curious about your usage though. Do you use inet or unix domain socket for supervisor status? And do you require username/password to access?

---

<div class="post-metadata">

**Author:** ![arkpoah](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@arkpoah](https://discourse.sensu.io/u/arkpoah)\
**Post date:** [April 28, 2020, 7:54am UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/4 "2020-04-28T07:54:40Z")

</div>

we use unix socket to get supervisor status, no user/password are required.  
it is actually called like that on sensu core :

```bash
/opt/sensu/embedded/bin/check-supervisor-socket.rb -s /var/run/supervisor.sock -c STARTING,BACKOFF,STOPPING,EXITED,FATAL,UNKNOWN,STOPPED

```

---

<div class="post-metadata">

**Author:** ![todd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/todd/32/936_2.png) [@todd](https://discourse.sensu.io/u/todd)\
**Post date:** [April 28, 2020, 8:25pm UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/5 "2020-04-28T20:25:41Z")

</div>

Rather than burn a lot of time on the existing Ruby based plugin, I coded something similar in Go. Want to try this one out?

[https://bonsai.sensu.io/assets/nixwiz/sensu-supervisor-check](https://bonsai.sensu.io/assets/nixwiz/sensu-supervisor-check)

---

<div class="post-metadata">

**Author:** ![arkpoah](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@arkpoah](https://discourse.sensu.io/u/arkpoah)\
**Post date:** [April 29, 2020, 10:44am UTC](https://discourse.sensu.io/t/sensu-plugins-supervisor/1729/6 "2020-04-29T10:44:41Z")

</div>

check works fine, thank you !!

I’m able to run it locally with sudo from `/var/cache/sensu/sensu-agent/*/bin/sensu-supervisor-check` but sudo does not work from sensu.

I’m investigating on that, if you know… 🙂
