Skip to content

Instantly share code, notes, and snippets.



Last active May 30, 2016
What would you like to do?
Zabbix 2.0+ temperature monitoring configuration using IPMI
#zabbix user needs to be in /etc/sudoers to be able to execute ipmitool
zabbix ALL=NOPASSWD: /usr/bin/ipmitool
#zabbix config has to collect desired UserParameters
UserParameter=ipmi.ambient_temp,sudo ipmitool sdr | grep "Ambient" | awk '{print $3}' | head -1
UserParameter=ipmi.cpu_temp,sudo ipmitool sdr | grep "CPU" | awk '{print $3}' | head -1
UserParameter=ipmi.cpu_fan,sudo ipmitool sdr | grep -i "FAN1 SYS" | awk '{print $4}' | head -1
UserParameter=ipmi.cpu_fan_status,sudo ipmitool sdr | grep -i "FAN1 SYS" | awk '{print $7}' | head -1
#after restart of zabbix_agentd, collected values can be tested via
/usr/local/bin/zabbix_get -s localhost -p 10050 -k <UserParameter key>
#parameters need to be added to Zabbix control panel by name manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment