# Check Extensions

**URL:** <https://discourse.sensu.io/t/check-extensions/188>\
**Category:** Sensu Classic (EOL)\
**Created:** [May 10, 2014, 12:33pm UTC](https://discourse.sensu.io/t/check-extensions/188 "2014-05-10T12:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Myers](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Josh\_Myers](https://discourse.sensu.io/u/Josh_Myers)\
**Post date:** [May 10, 2014, 12:33pm UTC](https://discourse.sensu.io/t/check-extensions/188/1 "2014-05-10T12:33:50Z")

</div>

Hey Guys,

Am struggling getting this check extension working: [https://github.com/sensu/sensu-community-plugins/blob/master/extensions/checks/wmi\_metrics.rb](https://github.com/sensu/sensu-community-plugins/blob/master/extensions/checks/wmi_metrics.rb)

Documentation on check extensions is still on the todo list, anyone have any experience using them?

On my Sensu server I have the following config file:

```auto
cat /etc/sensu/conf.d/checks/wmi_metrics.json

{

"checks": {

"wmi_metrics": {

"command": "C:\\opt\\sensu\\embedded\\bin\\ruby C:\\etc\\sensu\\conf.d\\extensions\\wmi_metrics.rb",

"handlers": [

"graphite"

],

"subscribers": [

"base-test-windows"

],

"type": "metric",

"interval": 30

}

}

}

wmi_metrics.rb is present on the Sensu client...

Any ideas where I am going wrong / how to get this check extension running?

Thanks,

Josh
```

---

<div class="post-metadata">

**Author:** ![Josh\_Myers](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Josh\_Myers](https://discourse.sensu.io/u/Josh_Myers)\
**Post date:** [May 11, 2014, 12:29pm UTC](https://discourse.sensu.io/t/check-extensions/188/2 "2014-05-11T12:29:44Z")

</div>

No worries, I got his working. Drop the wmi-metrics.rb file onto the client and adjust the client sense XML ( on windows ) adding -e $pathtoextensions option.

Cheers,

Josh

> **···**
>
> On Saturday, May 10, 2014 1:33:50 PM UTC+1, Josh Myers wrote:
> 
> > Hey Guys,
> 
> > Am struggling getting this check extension working: [https://github.com/sensu/sensu-community-plugins/blob/master/extensions/checks/wmi\_metrics.rb](https://github.com/sensu/sensu-community-plugins/blob/master/extensions/checks/wmi_metrics.rb)
> 
> > 
> 
> > Documentation on check extensions is still on the todo list, anyone have any experience using them?
> 
> > 
> 
> > On my Sensu server I have the following config file:
> 
> > 
> 
> > ```auto
> > cat /etc/sensu/conf.d/checks/wmi_metrics.json
> > 
> > ```
> 
> > {
> 
> > “checks”: {
> 
> > “wmi\_metrics”: {
> 
> > “command”: “C:\opt\sensu\embedded\bin\ruby C:\etc\sensu\conf.d\extensions\wmi\_metrics.rb”,
> 
> > “handlers”: [
> 
> > “graphite”
> 
> > ],
> 
> > “subscribers”: [
> 
> > “base-test-windows”
> 
> > ],
> 
> > “type”: “metric”,
> 
> > “interval”: 30
> 
> > }
> 
> > }
> 
> > }
> 
> > 
> 
> > wmi\_metrics.rb is present on the Sensu client…
> 
> > 
> 
> > Any ideas where I am going wrong / how to get this check extension running?
> 
> > 
> 
> > Thanks,
> 
> > Josh

---

<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:05am UTC](https://discourse.sensu.io/t/check-extensions/188/3 "2018-11-22T02:05:15Z")

</div>

Closed on November 22, 2018, 2:05am UTC


