sensu-plugins-influxdb-handoff
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 withpassword
-
password
: password for ssh authentication, cannot be used withkeyfile
-
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
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