# sensu plugin install ... not!

**URL:** <https://discourse.sensu.io/t/sensu-plugin-install-not/795>\
**Category:** Sensu Classic (EOL)\
**Created:** [April 7, 2017, 8:34pm UTC](https://discourse.sensu.io/t/sensu-plugin-install-not/795 "2017-04-07T20:34:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Foster](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@Mark\_Foster](https://discourse.sensu.io/u/Mark_Foster)\
**Post date:** [April 7, 2017, 8:34pm UTC](https://discourse.sensu.io/t/sensu-plugin-install-not/795/1 "2017-04-07T20:34:10Z")

</div>

sensu v0.28.5-2 on Ubuntu Xenial.

Trying to install the pagerduty plugin, but it seems confused

$ /opt/sensu/embedded/bin/sensu-install -v -p pagerduty

[SENSU-INSTALL] installing Sensu plugins …

[SENSU-INSTALL] provided Sensu plugins: [“pagerduty”]

[SENSU-INSTALL] compiled Sensu plugin gems: [“sensu-plugins-pagerduty”]

[SENSU-INSTALL] determining if Sensu gem ‘sensu-plugins-pagerduty’ is already installed …

[SENSU-INSTALL] gem list -i sensu-plugins-pagerduty

[SENSU-INSTALL] Sensu gem ‘sensu-plugins-pagerduty’ has not been installed

[SENSU-INSTALL] Sensu plugin gems to be installed: [“sensu-plugins-pagerduty”]

[SENSU-INSTALL] installing Sensu gem ‘sensu-plugins-pagerduty’

[SENSU-INSTALL] gem install sensu-plugins-pagerduty --no-ri --no-rdoc --verbose

[SENSU-INSTALL] failed to install Sensu gem ‘sensu-plugins-pagerduty’

[SENSU-INSTALL] please take note of any failure messages above

[SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)

[SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-pagerduty …

sh: 1: gem: not found

Is there an expectation that /opt/sensu/embedded/bin would be in my $PATH?

---

<div class="post-metadata">

**Author:** ![Alexander\_Skiba](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/alexander_skiba/32/408_2.png) [@Alexander\_Skiba](https://discourse.sensu.io/u/Alexander_Skiba)\
**Post date:** [April 14, 2017, 8:42pm UTC](https://discourse.sensu.io/t/sensu-plugin-install-not/795/2 "2017-04-14T20:42:57Z")

</div>

Have you made sure that you have installed:

- gcc

- ruby-dev (possibly)

The bin location does not need to be in your path, it is in the path of the sensu user and is used in the correct way by the plugin installer automatically (as far as I remember).

> **···**
>
> On Friday, April 7, 2017 at 10:34:10 PM UTC+2, Mark Foster wrote:
> 
> > 
> 
> > [SENSU-INSTALL] failed to install Sensu gem ‘sensu-plugins-pagerduty’
> 
> > [SENSU-INSTALL] please take note of any failure messages above
> 
> > [SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)
> 
> > [SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-pagerduty …
> 
> > sh: 1: gem: not found
> 
> > 
> 
> > Is there an expectation that /opt/sensu/embedded/bin would be in my $PATH?

---

<div class="post-metadata">

**Author:** ![amdprophet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/amdprophet/32/409_2.png) [@amdprophet](https://discourse.sensu.io/u/amdprophet)\
**Post date:** [April 15, 2017, 3:22am UTC](https://discourse.sensu.io/t/sensu-plugin-install-not/795/3 "2017-04-15T03:22:51Z")

</div>

You will want to use /opt/sensu/bin/sensu-install which is a wrapper around the sensu-install script in /opt/sensu/embedded/bin/sensu-install that sets a few environment variables including PATH.

> **···**
>
> On Fri, 14 Apr 2017 at 13:42 Alexander Skiba [ghostlyrics@gmail.com](mailto:ghostlyrics@gmail.com) wrote:
> 
> > On Friday, April 7, 2017 at 10:34:10 PM UTC+2, Mark Foster wrote:
> > 
> > >
> 
> > > [SENSU-INSTALL] failed to install Sensu gem ‘sensu-plugins-pagerduty’
> 
> > > [SENSU-INSTALL] please take note of any failure messages above
> 
> > > [SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)
> 
> > > [SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-pagerduty …
> 
> > > sh: 1: gem: not found
> 
> > >
> 
> > > Is there an expectation that /opt/sensu/embedded/bin would be in my $PATH?
> 
> > 
> 
> > Have you made sure that you have installed:
> 
> > - gcc
> 
> > - ruby-dev (possibly)
> 
> > 
> 
> > The bin location does not need to be in your path, it is in the path of the sensu user and is used in the correct way by the plugin installer automatically (as far as I remember).

---

<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:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/sensu-plugin-install-not/795/4 "2018-11-22T02:07:53Z")

</div>


