rw
pacman -S net-snmp nano
nano /usr/share/snmp/snmpd.conf
nano /opt/snmp-cpu-temp.sh
chmod +x /opt/snmp-cpu-temp.sh
Because PiKVM runs in read only mode the script will fail. We need to link the cache file to tmp folder
rm /var/net-snmp/.snmp-exec-cache #in case the file already exists
ln -s /tmp/.snmp-exec-cache /var/net-snmp/.snmp-exec-cache
systemctl restart snmpd.service
ro
- Add sensor
- SNMP Custom
- Name = CPU Temp
- OID = .1.3.6.1.2.1.25.1.8
- Channel Name = Temperature
- Unit String = °C