Open jothoma1 opened 7 years ago
Hmm I'm running this with a Sensu version that has the 2.2.0 embedded Ruby version instead of 2.4.0, but I don't think that's the issue here. It seems like it's failing when parsing the stashes response from the API. Could you check your if your API is up and running correctly?
Also probably not the issue, but do you have a conf file like /etc/sensu/conf.d/extentions/auto_resolve.json
? If not, you might try to create one with the following contents:
{
"auto_resolve": {
}
}
Thanks for your help. Yes the API is up and running and i have the conf file. It failed with :
/etc/sensu/extensions/handlers/auto_resolve.rb:90:in
periodic_auto_resolve_expiration': undefined method
parse' for Sensu::JSON:Module (NoMethodError)
Hi, another problem, when trying auto_resolve.rb with sensu 1.0, sensu crash
Hey! I've resolved this issue. Try to use ::JSON.parse (external lib) instead of JSON.parse. It seems there is JSON lib without parse() method in new Sensu (I have Sensu 1.2) or something else.
@ushacow Same problem here on 0.29. Resolved with ::JSON
Hi ! I'm trying to use your handler, by the way, you are doing really great work with the tools i use too (sensu, graylog :) ). I'm having an issue when the handler run, here is the error (undefined method `parse' for Sensu::JSON:Module (NoMethodError))
If you have an idea ?