-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api.json settings not found #58
Comments
That sounds like you dont have a key anywhere defined with unless settings.key?('api')
raise 'api.json key in settings is not found. Define it in a json config `/etc/sensu/conf.d` or in any other config file that sensu imports'
end |
Its usually defined in
Documentation: https://docs.sensu.io/sensu-core/1.4/platforms/sensu-on-ubuntu-debian/#example-data-store-configuration |
I have opened #59 to improve the error message around this. |
Hi,
I'm fairly new to sensu, and moving some checks over from nagios. I wanted to be able to purge stale check results so this plugin looked awesome.
However, when I run it, I get an error "Check failed to run: api.json settings not found.
Here's the complete text:
[root@linux4 bin]# ./check-stale-results.rb -c 10 -w 5 -s 1d
Check failed to run: api.json settings not found., ["/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-sensu-3.0.0/bin/check-stale-results.rb:72:in
api_request'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-sensu-3.0.0/bin/check-stale-results.rb:87:in
results'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-sensu-3.0.0/bin/check-stale-results.rb:52:ininitialize'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.5.0/lib/sensu-plugin/cli.rb:56:in
new'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.5.0/lib/sensu-plugin/cli.rb:56:in `block in class:CLI'"]I'm thinking that I need a json file in /etc/sensu/conf.d, but I have no idea what should be in it. Google didn't help much.
I'm pretty handy, though ruby isn't my first language.
If anyone has some hints, I'd sure appreciate it!
Thanks!
J
The text was updated successfully, but these errors were encountered: