monitoring ambient temperature with zabbix and ipmitool

I wanted to monitor the ambient temperature in my computer room and decided to try using the built in sensors on my servers. ipmitool showed an ambient temperature, so I did some sed to get just the temperature.


[thomas@hotstuff: ~] $ sudo ipmitool sdr type "Temperature" |grep Ambient
Ambient Temp | 08h | ok | 7.1 | 22 degrees C

Some of my machines have multiple Ambient Temperature sensors, I did some looking on the google and the ones marked 7.1 appear to be the one to look at, the rest are power supply temp sensors and show much higher temps.

To have just the ambient temp show I changed the above to:


[thomas@hotstuff: ~] $ sudo ipmitool sdr type "Temperature" |grep Ambient |grep 7.1 |sed -e 's/.*7.1 | \([0-9]\+\).*/\1/'
22

To have this monitored in zabbix, I just put it into zabbix_agentd.conf


UserParameter=ambient.temp,sudo ipmitool sdr type "Temperature" |grep Ambient |grep 7.1 |sed -e 's/.*7.1 | \([0-9]\+\).*/\1/'

After adding ambient.temp to a host and waiting a while I have the following graph. I also set a trigger if ambient.temp > 30.

About the Author...

Slides from LISA 2019 Linux systems troubleshooting #LISA2019 https://t.co/D4dMKflK6R Tue Oct 29 05:59:30 +0000 2019

https://t.co/AGeihMALAv configuring grub2 with EFI Fri Sep 13 05:20:01 +0000 2019

I published a Thing on @thingiverse! https://t.co/IYpRyEb7Hz #thingalert Tue Jul 23 19:27:57 +0000 2019

Nokogiri install on MacOSX https://t.co/v3An0miW9L Fri Jul 12 15:06:49 +0000 2019

HTML email with plain mailer plugin on Jenkins https://t.co/Z6FSDMDjy8 Thu Jul 11 21:07:25 +0000 2019