Hey Guys,
Am struggling getting this check extension working: 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:
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
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
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:
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