Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mautematico/1e8bad73f6d020774577ad500d0c49e2 to your computer and use it in GitHub Desktop.
Save mautematico/1e8bad73f6d020774577ad500d0c49e2 to your computer and use it in GitHub Desktop.
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