Skip to content

ve-global/sensu-plugins-influxdb-handoff

Repository files navigation

sensu-plugins-influxdb-handoff

Build Status Gem Version

Functionality

Files

  • bin/handler-influxdb-handoff.rb

Usage

example config:

{
  "handlers": {
    "influxdb-handoff": {
      "command": "/opt/sensu/embedded/bin/handler-influxdb-handoff.rb",
      "type": "pipe",
      "filters": [],
      "severities": ["critical"]
    }
  },
  "influxdb-handoff": {
    "user": "myuser",
    "keyfile": "/home/user/.ssh/id_rsa",
    "handoff_dir": "/var/lib/influxdb/hh/*",
    "lockfile": "/var/run/influxdb/handoff.lock",
    "quiet_period": "300"
  }
}

options:

  • user: ssh user to connect as
  • keyfile: private key file to use for ssh, cannot be used with password
  • password: password for ssh authentication, cannot be used with keyfile
  • handoff_dir: directory where handoff data is stored
  • lockfile: local lockfile to prevent multiple concurrent runs
  • quiet_period: period (in seconds) between runs of the handler

Installation

Installation and Setup

Notes

The ruby executables are installed in a path similar to /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-influxdb-handoff-0.1.1/bin

About

Sensu handler for clearing the influxdb handoff dir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages