added example for using check_temperature
This commit is contained in:
20
README.md
20
README.md
@@ -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).
|
||||||
|
|||||||
Reference in New Issue
Block a user