added example for using check_temperature

This commit is contained in:
2016-10-17 19:04:09 +02:00
parent a1eeb872bf
commit 747b6f2722

View File

@@ -287,6 +287,26 @@ define command {
~~~ ~~~
Make sure to replace `[install_path]/plugins` with the location of the script. 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 Please run `check_temperature -h` after installation for an overview of the
available command line options (e.g. to enable logging to a file). available command line options (e.g. to enable logging to a file).