Closed johnnystarr closed 7 years ago
I tried repro'ing this using both the Ruby 2.3.0 included with sensu and the one in Chef you are using and was unable to hit the error. I suspect there's something about your haproxy stats output tripping up the CSV parser, possibly an extra quote or space. Would you mind pasting line 2 of haproxy's CSV stats so we can see what's being parsed.
closing due to inactivity, if you still need help feel free to reply and we can re-open.
I've pulled down the master branch of this gem, and integrated the plugins to my organization's monitoring cookbook. This deploys the sensu plugins to the clients, and uses the embedded Ruby binary at
/opt/chef/embedded/bin/ruby
. The current version deployed with Chef Client 12.* is Ruby 2.3.0I'm getting the following feedback
The above is complaining about metrics-haproxy.rb line 145: https://github.com/sensu-plugins/sensu-plugins-haproxy/blob/master/bin/metrics-haproxy.rb#L145
It should be noted that I'm getting the same error here: https://github.com/sensu-plugins/sensu-plugins-haproxy/blob/master/bin/check-haproxy.rb#L201
So far, the only conclusion I can come to is that Ruby 2.3.0 is not yet supported by this plugin, or there is a bug in this use of CSV for this version. Or, possibly this implementation does not support the latest CSV class itself. Any feedback is much appreciated.
-Johnny Starr