You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|Mikanoshi ba92a40cb9||7 years ago|
|.gitignore||7 years ago|
|LICENSE||7 years ago|
|README.html||7 years ago|
|check_influx.php||7 years ago|
|composer.json||7 years ago|
InfluxDB data monitoring plugin
Queries any number of fields/measurements and returns a defined number of raw or aggregated values in Nagios format.
- PHP interpreter and composer
- InfluxDB (0.13.0 recommended)
Run composer install to download InfluxDB PHP Client dependency.
Example InfluxDB config
[http] enabled = true bind-address = "localhost:8086" auth-enabled = false
Plugin settings$host, $port and $db variables must be configured according to InfluxDB.
[Required] Field keys to select (can contain aggregate functions, return last values) -m [Optional] Measurements to get fields from (search all if not specified) -s <5m|1h|1d|...> [Optional] Defines period from now that is used to collect values (defaults to 15 minutes) -l [Optional] Number of points to display (defaults to 1, results are sorted by time in descending order) -t [Optional] Replace field keys with these titles in an output string -w -c [Optional] Warning and critical levels for every field -f [Optional] Display only info or perfdata part (both if not specified) -x [Optional] Add c units to all values (counters) -p [Optional] Add % to all values (percents) -b [Optional] Add B to all values (data sizes) -z [Optional, Debug] Output query string and returned array of values only