Monitoring FreeBSD CPU temperature featuring LLD (Intel & AMD)
This tutorial was taken from Zabbix Share from user Felician Hoppal
- Low Level Discovery (LLD)
- Zabbix Agent
load coretemp kernel module: kldload coretemp (for Intel CPUs or amdtemp kernel module: kldload amdtemp (for AMD CPUs)
add coretemp_load="YES" or amdtemp_load="YES" to /boot/loader.conf
create zbx.cpu.coretemp.conf file in zabbix_agentd.conf.d
- make sure you have bash installed and the Include directive is present and valid in zabbix_agentd.conf to include individual files *
restart zabbix_agentd, import & apply the template
also make sure zabbix_agentd has all the paths needed: in /etc/rc.conf
zabbix_agentd_paths="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
git clone https://github.com/smejdil/zabbix-fbsd-CPU-temperature && cd ./zabbix-fbsd-CPU-temperature/scripts/ && ./install
zabbix_get -s 127.0.0.1 -k coretemp.cpu.discovery
{"data":[{"{#CPUCORE}":"0"},{"{#CPUCORE}":"1"},{"{#CPUCORE}":"2"},{"{#CPUCORE}":"3"},{"{#CPUCORE}":"4"},{"{#CPUCORE}":"5"},{"{#CPUCORE}":"6"},{"{#CPUCORE}":"7"}]}