Hi all, I'm trying to monitor the CPU temperature of my Linux servers. I'm following closely this guide: https://myopsblog.wordpress.com/2016...g-with-zabbix/
The config on zabbix_agentd.conf
UnsafeUserParameters=1
UserParameter=CPUTemp.avg,sensors | grep Core | awk -F'[:+°]' '{avg+=$3}END{print avg/NR}'
The command works fine on the local server
# sensors | grep Core | awk -F'[:+°]' '{avg+=$3}END{print avg/NR}'
47
And on the Zabbix server, I created an Item as follows
Name: CPUTemp avg
Type: Zabbix agent
Key: CPUTemp.avg
Type of info: numeric (float)
Units: °C
Update interval: 1m
Show values: as is
Applications: CPU
I'm getting "Unsupported key item" info message and no data on the corresponding graph.
Please help.
Thank you,
ioan
The config on zabbix_agentd.conf
UnsafeUserParameters=1
UserParameter=CPUTemp.avg,sensors | grep Core | awk -F'[:+°]' '{avg+=$3}END{print avg/NR}'
The command works fine on the local server
# sensors | grep Core | awk -F'[:+°]' '{avg+=$3}END{print avg/NR}'
47
And on the Zabbix server, I created an Item as follows
Name: CPUTemp avg
Type: Zabbix agent
Key: CPUTemp.avg
Type of info: numeric (float)
Units: °C
Update interval: 1m
Show values: as is
Applications: CPU
I'm getting "Unsupported key item" info message and no data on the corresponding graph.
Please help.
Thank you,
ioan