Sensu works for me and follow the instructions that I could install for the Slack plugin. I'm trying to just do a hi-world to get started, but it seems to me that I am missing documentation.
I followed the “start” with checks: https://sensuapp.org/docs/0.20/getting-started-with-checks and everything seems to be in the right place on the server.
I am trying to install the following community plugin, but they have a catch-all command for all community plugins. There is a json file in the instructions of the plugin, but it does not say where to put it ... https://github.com/sensu-plugins/sensu-plugins-slack
This is what my check_cron.json looks like (I tried 2 methods, 1 from a source other than Sensu):
{ "checks": { "cron_checks": { "handlers": ["default", "slack"], "command": "/etc/sensu/plugins/check-procs.rb -p cron -C 1 ", "interval": 60, "subscribers": ["webservers"] }, "cron": { "handlers": ["default", "slack"], "command": "/etc/sensu/plugins/check-procs.rb -p cron", "subscribers": [ "production", "webservers", ], "interval": 60 } } }
I restarted my server after making the changes. I assume that this cron will beat every minute and call the slack notification plugin, but I don’t know what I am missing or where to put the .json document from the Slack plugin “documentation”, https://github.com/sensu -plugins / sensu-plugins-slack
Any help help me in the right direction?
source share