Trouble dumping metrics out to influxdb from sensu


#1

127 might hint that the command isn't in the path? Can you try using
the full path to the command?

···

On Wed, Mar 4, 2015 at 9:21 AM, John B <wilshire461@gmail.com> wrote:

Hi all,

I have been having trouble getting the sensu influxdb handler working. The
version I am using is from
https://github.com/flowboard/sensu_influxdb_handler/blob/production/influx.rb
with sensu version 0.16.0

The error I am receiving is for every metric I am getting messages like
these

{"timestamp":"2015-03-04T11:14:31.057192-0600","level":"info","message":"publishing
check
request","payload":{"name":"iostat_metrics","issued":1425489271,"command":"iostat-extended-metrics.rb"},"subscribers":["test"]}
{"timestamp":"2015-03-04T11:14:31.064655-0600","level":"error","message":"InfluxDB:
iostat_metrics.bmgt1 failed with status code: 127"}

I was originally using lusis version of the sensu-influxdb handler with the
MultiJson fix for replacing oj but even then the only thing that would pop
up in the value field in influxdb was the name of the metrics script name.

Any assistance or guidance would be greatly appreciated.

Thanks!


#2

Yeah I eventually found that 127 meant it couldn't find the path. I
hadn't fixed the metrics.json to include the full file path to the
metrics scripts. Since I figured it out I deleted the message and
have gotten the influxdb handler to work out fantastically even if it
took a bit of time to figure out how to get the influxdb templated
dashboards working properly in grafana along with setting up a
seperate influxdb handler to do take note of alerts as well.

Thanks for the concern though!

···

On Fri, Mar 6, 2015 at 10:13 AM, Kyle Anderson <kyle@xkyle.com> wrote:

127 might hint that the command isn't in the path? Can you try using
the full path to the command?

On Wed, Mar 4, 2015 at 9:21 AM, John B <wilshire461@gmail.com> wrote:

Hi all,

I have been having trouble getting the sensu influxdb handler working. The
version I am using is from
https://github.com/flowboard/sensu_influxdb_handler/blob/production/influx.rb
with sensu version 0.16.0

The error I am receiving is for every metric I am getting messages like
these

{"timestamp":"2015-03-04T11:14:31.057192-0600","level":"info","message":"publishing
check
request","payload":{"name":"iostat_metrics","issued":1425489271,"command":"iostat-extended-metrics.rb"},"subscribers":["test"]}
{"timestamp":"2015-03-04T11:14:31.064655-0600","level":"error","message":"InfluxDB:
iostat_metrics.bmgt1 failed with status code: 127"}

I was originally using lusis version of the sensu-influxdb handler with the
MultiJson fix for replacing oj but even then the only thing that would pop
up in the value field in influxdb was the name of the metrics script name.

Any assistance or guidance would be greatly appreciated.

Thanks!