{"id":21470110,"url":"https://github.com/sensu-plugins/sensu-plugins-stackstorm","last_synced_at":"2025-07-27T14:08:54.914Z","repository":{"id":52416759,"uuid":"102840915","full_name":"sensu-plugins/sensu-plugins-stackstorm","owner":"sensu-plugins","description":"Sensu plugins for StackStorm","archived":false,"fork":false,"pushed_at":"2021-04-29T20:18:00.000Z","size":23,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-26T17:04:42.860Z","etag":null,"topics":["sensu-handler","sensu-plugins"],"latest_commit_sha":null,"homepage":"http://sensu-plugins.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensu-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-08T08:56:53.000Z","updated_at":"2018-07-22T08:23:07.000Z","dependencies_parsed_at":"2022-08-24T22:20:09.596Z","dependency_job_id":null,"html_url":"https://github.com/sensu-plugins/sensu-plugins-stackstorm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sensu-plugins/sensu-plugins-stackstorm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-stackstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-stackstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-stackstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-stackstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensu-plugins","download_url":"https://codeload.github.com/sensu-plugins/sensu-plugins-stackstorm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-stackstorm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267368932,"owners_count":24076093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sensu-handler","sensu-plugins"],"created_at":"2024-11-23T09:23:20.190Z","updated_at":"2025-07-27T14:08:54.895Z","avatar_url":"https://github.com/sensu-plugins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensu-Plugins-StackStorm\n[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-stackstorm.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-stackstorm)\n[![Gem Version](https://badge.fury.io/rb/sensu-plugins-slack.svg)](https://badge.fury.io/rb/sensu-plugins-slack)\n[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-slack.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-slack)\n[![Community Slack](https://slack.sensu.io/badge.svg)](https://slack.sensu.io/badge)\n\n# Functionality\n\n## Files\n\n* st2_handler.rb\n\n# Installation\nYou can easily install this pack using [sensu-install](https://sensuapp.org/docs/latest/reference/plugins.html#installing-sensu-plugins) as following.\n```\n$ sudo sensu-install -p stackstorm\n```\n\n# Usage\n\n## st2_handler.rb\n```\nusage: st2_handler.rb [-h] [--verbose] [--unauthed] [--ssl-verify]\n\nStackStorm sensu event handler.\n\noptional arguments:\n  -h, --help        show this help message and exit\n  --verbose, -v     Verbose mode.\n  --unauthed, -u    Allow to post to unauthed st2. E.g. when auth is disabled\n                    server side.\n  --ssl-verify, -k  Turn on SSL verification for st2 APIs.\n```\n\n### Configuration\nThis is the configuration parameters that st2_handler refers.\n\n| parameter         | description | default value |\n|:------------------|:------------|:--------------|\n| st2_username      | Username that is authenticated by the StackStorm| `st2admin` |\n| st2_password      | Password that corresponds to the Username to be authenticated | `password` |\n| st2_api_key       | API Key value to authenticate API access (see also: [api-keys](https://docs.stackstorm.com/authentication.html#api-keys))|  |\n| st2_api_base_url  | The base URL to access to the [st2api](https://docs.stackstorm.com/reference/ha.html#st2api) | `http://localhost:9101/v1/` |\n| st2_auth_base_url | The base URL to access to the [st2auth](https://docs.stackstorm.com/reference/ha.html#st2auth) | `http://localhost:9100/` |\n\nYou can set these configurations in a Sensu configuration source file (e.g. `/etc/sensu/conf.d/st2_handler.json`) as following.\n\n```JSON\n{\n  \"st2_handler\": {\n    \"st2_username\": \"testu\",\n    \"st2_password\": \"testp\",\n    \"st2_api_key\": \"\",\n    \"st2_api_base_url\": \"http://localhost:9101/v1/\",\n    \"st2_auth_base_url\": \"http://localhost:9100/\"\n  }\n}\n```\n(see also: [sensu-configuration-source](https://sensuapp.org/docs/latest/reference/configuration.html#sensu-configuration-sources))\n\n### Confirmation\nAfter installing this plugin by `sensu-install` command, you can manually dispatch StackStorm trigger `sensu.event_handler` of [Sensu pack](https://github.com/StackStorm-Exchange/stackstorm-sensu) with the message of [Sensu Events](https://sensuapp.org/docs/latest/reference/events.html) for confirmation the normality. If the setup goes well, you can get following result.\n```\n$ echo '{\"client\": {\"name\": 1}, \"check\":{\"name\": 2}, \"id\": \"12345\"}' | /opt/sensu/embedded/bin/st2_handler.rb\nSent sensu event to st2. HTTP_CODE:                 202\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-stackstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-stackstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-stackstorm/lists"}