InfluxDB data monitoring plugin
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 License 8 years ago
.gitignore Initial commit 8 years ago
LICENSE License 8 years ago
README.html Readme 8 years ago
check_influx.php Initial commit 8 years ago
composer.json Initial commit 8 years ago

README.html

InfluxDB data monitoring plugin


Queries any number of fields/measurements and returns a defined number of raw or aggregated values in Nagios format.
Requirements:
- 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.

Plugin parameters

-k 
	[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