Last active
May 30, 2016 20:33
-
-
Save kixorz/5281510 to your computer and use it in GitHub Desktop.
Zabbix 2.0+ temperature monitoring configuration using IPMI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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