CPU temp and Zabbix
I am trying to get the CPU temp using Zabbix.
I started by using SSH to remote into the firewall and ran kldload coretemp
From there, I verified that I was able to get the temp by running:
sysctl -n dev.cpu.0.temperature
The temp for core 0 was displayed.
I then went to the the zabbix_agentd.conf and added this to the bottom:
UserParameter=cputemp0,/sbin/sysctl -n dev.cpu.0.temperature
I created a template/application/item in Zabbix that matched cputemp0 as my key. The template will apply to the firewall but after about a minute, it will show up as Not Supported - Unsupported Key Item.
I then tried to enable it via Include=/usr/local/etc/zabbix52/zabbix_agentd.conf.d/*.conf
and created a conf file with the following command:
UserParameter=coretemp.cpu.discovery, /sbin/sysctl -n dev.cpu.0.temperature
I changed the key in my template, removed it from the firewall, restarted Zabbix on the firewall, and reapplied the template. Same results.
So it appears that Zabbix isn't receiving the data. Is there something else I need to do so that I can retrieve CPU temp?
pfsense 2.5, Zabbix Agent 5.2