Search code examples
pluginssensuslack

Installing Slack Plugin to Sensu NON-enterprise edition


I have Sensu running and followed the instructions the best I could to install the Slack plugin. I'm attempting to just do a "hello-world" to get started, but the documentation seems lacking to me.

I followed the "getting started" with checks: https://sensuapp.org/docs/0.20/getting-started-with-checks and everything seems to be in the correct place on the server.

I am attempting to install the following community plugin, but they have a catch-all instruction for all community plugins. There is a json file in the plugin instructions, but doesn't say where to put it... https://github.com/sensu-plugins/sensu-plugins-slack

Here is what my check_cron.json looks like ( I tried 2 methods, 1 from another 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 have restarted my server after making the changes. I'm assuming that this cron will hit every minute and call the slack notification plugin, but don't know what I'm missing, or where to put the .json doc from the Slack plugin "documentation" https://github.com/sensu-plugins/sensu-plugins-slack

Any help getting me to the right direction?


Solution

  • I found the answer in the "issues" section in Git https://github.com/sensu-plugins/sensu-plugins-slack/issues/7