Files
proxmox-snmp/snmp-cpu-temp.sh
Jan Zahradník c415fe9353 Update snmp-cpu-temp.sh
Reading CPU temperature using sensors package
2024-09-14 19:07:50 +02:00

9 lines
167 B
Bash

#!/bin/bash
if [ "$1" = "-g" ]
then
echo .1.3.6.1.2.1.25.1.8
echo gauge
echo `sensors -u | grep temp1_input -m 1 | awk '{print $2}' | sed 's/[0-9][0-9]$//'`
fi
exit 0