Create snmp-cpu-temp.sh

This commit is contained in:
in-famous-raccoon
2020-06-19 21:12:59 +02:00
committed by GitHub
parent 4b685cfdc1
commit 4117297c58

8
snmp-cpu-temp.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ "$1" = "-g" ]
then
echo .1.3.6.1.2.1.25.1.8
echo gauge
echo `cat /sys/class/thermal/thermal_zone7/temp | sed 's/\(.\)..$/.\1/'`
fi
exit 0