mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-19 10:23:40 -05:00
Initial commit
This commit is contained in:
10
templates/telegraf/temperature.conf.j2
Normal file
10
templates/telegraf/temperature.conf.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
[[inputs.exec]]
|
||||
{% if 'pis' in group_names %}
|
||||
commands = ["cat /sys/class/thermal/thermal_zone0/temp"]
|
||||
{% elif 'macs' in group_names %}
|
||||
commands = ["${HOME}/dotfiles-private/config/telegraf/cputemp.sh"]
|
||||
{% endif %}
|
||||
timeout = "5s"
|
||||
name_suffix = "_cpu_temp"
|
||||
data_format = "value"
|
||||
data_type = "integer"
|
||||
Reference in New Issue
Block a user