Add temperature sensors to Pis
This commit is contained in:
parent
4a1c5ea8e1
commit
fb465a666e
9
playbooks/device_types_pi4b.yml
Executable file
9
playbooks/device_types_pi4b.yml
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- hosts: device_types_pi4b-2g,device-type-pi4b-4g,device-type-pi4b-4g-storage
|
||||||
|
roles:
|
||||||
|
- role: ansible-role-lm-sensors
|
||||||
|
vars:
|
||||||
|
lm_sensors_force_detection: yes
|
||||||
|
tags: [ lm-sensors ]
|
@ -231,6 +231,10 @@
|
|||||||
- name: CPU1 Temperature
|
- name: CPU1 Temperature
|
||||||
command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_temp -n -w 65 -c 75 --sensor coretemp-isa-0001
|
command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_temp -n -w 65 -c 75 --sensor coretemp-isa-0001
|
||||||
hostgroup: device-type-r720
|
hostgroup: device-type-r720
|
||||||
|
# Pi 4 4G
|
||||||
|
- name: CPU Temperature
|
||||||
|
command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_temp -n -w 65 -c 75 --sensor cpu_thermal-virtual-0
|
||||||
|
hostgroup: device-type-pi4b-2g,device-type-pi4b-4g,device-type-pi4b-4g-storage
|
||||||
# Device role checks
|
# Device role checks
|
||||||
# hypervisor (which is assumed to be Proxmox)
|
# hypervisor (which is assumed to be Proxmox)
|
||||||
- name: PVE Unit pve-firewall.service
|
- name: PVE Unit pve-firewall.service
|
||||||
|
Loading…
Reference in New Issue
Block a user