From 1ec60af44a4435b54aff2e51322233532f2384c1 Mon Sep 17 00:00:00 2001 From: Frederik Lindenaar <frederik@lindenaar.nl> Date: Sun, 10 Mar 2019 13:03:10 +0100 Subject: [PATCH] Updated documentation --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aa3794b..883228f 100644 --- a/README.md +++ b/README.md @@ -309,10 +309,10 @@ define command { } ~~~ With `<<sensor>>` replaced by the sensor, e.g. w1_ds18b20 for a 1-wire DS18B20, -i2c_mcp9808 for an I2C MCP9808 sensor or i2c_bme280 for an I2C BME280. Run the - -In case you have multiple sensors, add multiple definitions with different -values for `command_name`. +i2c_mcp9808 for an I2C MCP9808 sensor or i2c_bme280 for an I2C BME280. Run +`check_temperature -h` to get the list of supported sensors. In case you have +multiple sensors, add a separate definition for each sensor with a different +value for `command_name`. If you need to pass on additional parameters, e.g. the sensor serial for an 1-wire DS18B20, you can do that like this: @@ -351,9 +351,8 @@ define command { ~~~ -For the list of available sensors, please run `check_temperature -h` and run -`check_temperature <<sensor>> -h` to get the list of accepted options for sensor -``<<sensor>>``. +For the list of supported sensors run `check_temperature -h` and to get the +options sensor ``<<sensor>>`` supports run `check_temperature <<sensor>> -h`. Make sure to replace `[install_path]/plugins` with the location of the script. To use the it define a service check like below: -- libgit2 0.22.2