Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name

This asset has compilation errors
  • Version 0.0.2: missing GitHub release asset for sensu-opsgenie-handler_0.0.2_sha512-checksums.txt

v0.0.2 · public · Published over 1 year ago

Asset Definition
Release Notes
Release Assets

Sensu Go OpsGenie Handler

TravisCI: TravisCI Build Status

The Sensu Go OpsGenie Handler is a Sensu Event Handler which manages
OpsGenie incidents, for alerting operators. With this handler,
Sensu can trigger OpsGenie incidents.


Download the latest version of the sensu-opsgenie-handler from releases,
or create an executable script from this source.

From the local path of the sensu-opsgenie-handler repository:

go build -o /usr/local/bin/sensu-opsgenie-handler main.go


Example Sensu Go handler definition:

    "api_version": "core/v2",
    "type": "Handler",
    "metadata": {
        "namespace": "default",
        "name": "opsgenie"
    "spec": {
        "type": "pipe",
        "command": "sensu-opsgenie-handler",
        "env_vars": [
        "timeout": 10,
        "filters": [

Example Sensu Go check definition:

    "api_version": "core/v2",
    "type": "CheckConfig",
    "metadata": {
        "namespace": "default",
        "name": "dummy-app-healthz"
    "spec": {
        "command": "check-http -u http://localhost:8080/healthz",
        "publish": true,
        "interval": 10,
        "handlers": [

Usage Examples


  sensu-opsgenie-handler [flags]

  -a, --auth string   The OpsGenie V2 API authentication token, use default from OPSGENIE_AUTHTOKEN env var
  -h, --help          help for sensu-opsgenie-handler
  -t, --team string   The OpsGenie V2 API Team, use default from OPSGENIE_TEAM env var

Note: Make sure to set the OPSGENIE_AUTHTOKEN environment variable for sensitive credentials in production to prevent leaking into system process table. Please remember command arguments can be viewed by unprivileged users using commands such as ps or top. The --auth argument is provided as an override primarily for testing purposes.

To use Opsgenie Priority

Please add this annotations inside sensu-agent:

# /etc/sensu/agent.yml example
  opsgenie_priority: "P1"



Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.


You must be signed in to report this asset.

Sign In with Github



There are no asset definitions for this version, only source code:

Download Source Cancel