-
Notifications
You must be signed in to change notification settings - Fork 289
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
Checks not working as expected #801
Comments
@agoddard This seems like a sensu bug if you cannot specify |
@ghoneycutt it should be Here's my config for my test:
and here's the log showing the config in use:
|
@agoddard so, I'm finding this behaviour on the sensu-server vagrant vm of the puppet module . They are like this:
and I get these errors:
If I change the above file to :
the api service starts. |
@alvagante ah! ok cool, that makes sense -
or it needs to use "handler", but only when there is a single handler, e.g.:
I would recommend the first approach (always using |
@agoddard great, now everything is clearer (sorry but my sensu experience is still basic (but I should have looked better at the log message)). |
Can you correct this by casting the string as an array? Also if a string is detected, we should not that it's deprecated and to switch to using an array. |
Yes, if I pass an array it works, same applies to subscribers (and probbaly aggreagates, but haven't tested directly). |
Force array for sensu::check subscribers, handlers and aggregates params Pass checks Added contacts and dependencies
Force array for sensu::check subscribers, handlers and aggregates params Pass checks Added contacts and dependencies Travis battles Removed pesky non printable chars
Force array for sensu::check subscribers, handlers and aggregates params Pass checks Added contacts and dependencies Travis battles Removed pesky non printable chars Lint
FYI: in the pr I convert string to array (with deprecation notice) to the following check params :se configs for the following parameters: handlers, subscribers, aggregates, contacts, dependencies. This somehow reproduces the params of the old sensu_check type. |
Force array for some sensu::check params sensu#801 Force array for sensu::check subscribers, handlers and aggregates params Pass checks Added contacts and dependencies Travis battles Removed pesky non printable chars Lint
Force array for sensu::check subscribers, handlers and aggregates params Pass checks Added contacts and dependencies Travis battles Removed pesky non printable chars Lint Removed deprecation notices
Force array for some sense::check params #801
Released in v2.33.1 |
From @alvagante
@ghoneycutt I think the error is due to how checks files are created:
if a single check is added in a conf.d/checks/ file then the json file should begin with:
and not
manually changing the files in conf.d/checks/ on the Vagrant sensu-server vm allows the api service to start.
The text was updated successfully, but these errors were encountered: