sensu-pushbullet-handler

command module
v0.0.0-...-c547a0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Sensu Go Pushbullet Plugin

TravisCI Build Status Sensu Bonsai Asset

A Sensu Go handler plugin for sending notifications via Pushbullet

Installation

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

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

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

Configuration

NOTE: It is recommended to use state_change_only filter with this handler. If not used, you will get a notification after each check run during a non-0 exit status.

Example Sensu Go definition:

{
    "api_version": "core/v2",
    "type": "Handler",
    "metadata": {
        "namespace": "default",
        "name": "pushbullet"
    },
    "spec": {
        "type": "pipe",
        "command": "sensu-pushbullet-handler",
        "timeout": 10,
        "env_vars": [
            "PUSHBULLET_APP_TOKEN=your_api_key_here",
            "DEVICE=your_device_name_here"
        ],
        "filters": [
            "is_incident",
            "not_silenced",
            "state_change_only"
        ],
        "runtime_assets": [ "sensu-pushbullet-handler" ]
    }
}

Usage Examples

Help:

The Sensu Go handler plugin for pushbullet

Usage:
  sensu-pushbullet-handler [flags]

Flags:
      --alldevices      Bool for sending notifications to all devices
  -d, --device string   A device registered with Pushbullet
  -h, --help            help for sensu-pushbullet-handler
  -t, --token string    Pushbullet API app token, use default from PUSHBULLET_APP_TOKEN env var

Contributing

See https://github.com/sensu/sensu-go/blob/master/CONTRIBUTING.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址