diff --git a/README.md b/README.md index 46e93a9..28e9028 100644 --- a/README.md +++ b/README.md @@ -287,6 +287,26 @@ define command { ~~~ Make sure to replace `[install_path]/plugins` with the location of the script. +To use the it define a service check like below: + +~~~ +# check temperature in Celcius using a DS18B20 sensor connected to a RaspberryPi +define service { + host hostname.mydomain.tld + service_description Check Temperature + check_command check_temperature!30!35 + use generic-service +} + + +# check temperature with DS18B20 sensor 0000a31ea3de connected to a RaspberryPi +define service { + host hostname.mydomain.tld + service_description Check Temperature + check_command check_temperature_sensor!0000a31ea3de!30!35 + use generic-service +} +~~~ Please run `check_temperature -h` after installation for an overview of the available command line options (e.g. to enable logging to a file).