Commit 747b6f2722fb2ef695fbf99a3db49ccd06713f85
1 parent
a1eeb872
added example for using check_temperature
Showing
1 changed file
with
20 additions
and
0 deletions
README.md
... | ... | @@ -287,6 +287,26 @@ define command { |
287 | 287 | ~~~ |
288 | 288 | |
289 | 289 | Make sure to replace `[install_path]/plugins` with the location of the script. |
290 | +To use the it define a service check like below: | |
291 | + | |
292 | +~~~ | |
293 | +# check temperature in Celcius using a DS18B20 sensor connected to a RaspberryPi | |
294 | +define service { | |
295 | + host hostname.mydomain.tld | |
296 | + service_description Check Temperature | |
297 | + check_command check_temperature!30!35 | |
298 | + use generic-service | |
299 | +} | |
300 | + | |
301 | + | |
302 | +# check temperature with DS18B20 sensor 0000a31ea3de connected to a RaspberryPi | |
303 | +define service { | |
304 | + host hostname.mydomain.tld | |
305 | + service_description Check Temperature | |
306 | + check_command check_temperature_sensor!0000a31ea3de!30!35 | |
307 | + use generic-service | |
308 | +} | |
309 | +~~~ | |
290 | 310 | |
291 | 311 | Please run `check_temperature -h` after installation for an overview of the |
292 | 312 | available command line options (e.g. to enable logging to a file). |
... | ... |