Installing Slack Plugin to Sensu NON-enterprise edition

sensu plugins
sensu-install command not found
sensu version
sensu python plugin
sensu uninstall plugin
sensu list plugins
sensu custom plugin
sensu go install

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?

You need a handler on the Sensu Server that will fire the request to Slack. Have you created that? If yes, please post it's content.

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� NOTE: Plugins found in the Sensu Plugins GitHub organization are community-maintained, meaning that anyone can improve on a plugin found there. If you have a question about how you can get involved in adding to, or providing a plugin, head to the Sensu Community Slack channel. Our maintainers are always happy to help answer questions and point

So I just solved this. benishkey did provide the solution in the link, however, just in case anyone comes across this and the link is broken, I thought I would add the solution.

-github user eugene-chow:

The Slack handler's config need to be named differently. Try the JSON below. I renamed the Slack config for each environment, and then pointed the handler to the respective config with -j config_name

{
  "handlers": {
    "slack-staging": {
      "type": "pipe",
      "command": "/usr/local/bin/handler-slack.rb -j slack-staging",
      "severites": ["critical", "unknown"]
    }
  },
  "slack-staging": {
    "webhook_url": "https://hooks.slack.com/services/...",
    "template" : ""
  }
}


{
  "handlers": {
    "slack-production": {
      "type": "pipe",
      "command": "/usr/local/bin/handler-slack.rb -j slack-production",
      "severites": ["critical", "unknown"]
    }
  },
  "slack-production": {
    "webhook_url": "https://hooks.slack.com/services/...",
    "template" : ""
  }
}

I dropped the handler-slack.rb file in with my checks and referenced it from there because it wasn't in my /usr/local/bin/ folder

Install Sensu plugins, Read this plugin installation guide to learn how to install plugins with assets and use To use community plugins that are not yet compatible with Sensu Go, use the adding to a plugin or sharing your own, head to the Sensu Community Slack The sensu-install tool comes with an embedded version of Ruby, so you don't� The sensu-install tool comes with an embedded version of Ruby, so you don’t need to have Ruby installed on your system. To install a Sensu Community plugin with Sensu Go: Install the sensu-plugins-ruby package from packagecloud. Run the sensu-install command to install plugins in the Sensu Community Plugins GitHub organization by

I was facing the same issue, so the answer is already given but maybe help someone in the future,

First, install sensu slack plugin

/opt/sensu/embedded/bin/gem install sensu-plugins-slack

Then, Create a handler config file

   vim /etc/sensu/conf.d/slack-handler.json

handler-slack.rb https://github.com/sensu-plugins/sensu-plugins-slack/blob/master/bin/handler-slack.rb

{
    "handlers": {
        "slack": {
            "type": "pipe",
            "command": "/opt/sensu/embedded/bin/handler-slack.rb",
            "severites": ["critical", "unknown"]
        }
    },
    "slack": {
        "webhook_url": "https://your_webhook.com/abc",
        "template" : ""
    }
}  

Installing & Managing Plugins, If you have a question about how you can get involved in adding to, or providing a plugin, head to the Sensu Community Slack channel. Our maintainers are� about 4 years Installing this plugin prevents Configure Credentials and saving a Installing Slack Plugin to Sensu NON-enterprise edition; slack-plugin list of

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

sensu-plugins/sensu-plugins-slack, Contribute to sensu-plugins/sensu-plugins-slack development by creating an account on GitHub Team � Enterprise; Explore Build Status Gem Version Code Climate Test Coverage Dependency Status Community Slack "no-team- alerts": "https://hooks.slack.com/services/AAAAAAA", "all-alerts": Installation and Setup� How to install plugins using assets . If you’ve been using Sensu for a while, you may well know that plugins extend Sensu’s functionality. Plugins can provide executables for performing status or metric checks, changing data to a desired format, or taking action on a Sensu event.

sensu/sensu-slack-handler, The Sensu Go Slack handler for notifying a channel. Team � Enterprise; Explore Installation from source and contributing Available Commands: help Help about any command version Print the version number of this plugin Flags: -c , --channel string The channel If you're not using an asset, please consider doing so! Slack Connect is a feature of Slack that enables people at up to 20 organizations to work together in a central place, without leaving their own Slack workspaces. Enterprise Grid, on the other hand, is a Slack plan that lets you connect multiple workspaces inside your company. Slack Connect is included as part of all paid Slack plans.

Migrating to Sensu Go, Translate plugins and register assets; Translate Sensu Enterprise features To install Sensu Go alongside your current Sensu instance, first upgrade to at least Sensu Core 1.7.0. handlers: default, Sensu Go no longer has the concept of a default handler, Slack, https://bonsai.sensu.io/assets/sensu/sensu-slack- handler. Slack is where work flows. It's where the people you need, the information you share, and the tools you use come together to get things done.

Sensu Core Integration Guide, The Enterprise version features a built-in PagerDuty integration which is officially At this time, CentOS 5 is not supported by the Sensu Core integration. Save the PagerDuty handler configuration to your Sensu installation's conf.d directory: See the supported platforms page for a complete list of Sensu’s supported platforms and the installation guide to install Sensu packages for Ubuntu. 5.19.1 release notes April 13, 2020 — The latest release of Sensu Go, version 5.19.1, is now available for download.

Comments
  • Please write the actual answer instead of linking, as the link may break.