Category Archives: RPi

Monitoring Raspberry Pi fw versions with check_mk

Modified http://exchange.nagios.org/directory/Plugins/Hardware/Others/check_rpi_firmware/details to work with my omd/check_mk setup for monitoring firmware versions on rpi farm. Code: #/bin/bash raw_firmware=`/opt/vc/bin/vcgencmd version` date_version=`echo $raw_firmware | awk ‘{print $1,$2,$3,$4}’` git_version=`echo $raw_firmware | awk ‘{print $10}’` echo “0 RpiFirmwareVersion hash=($git_version) $date_version ($git_version)” exit 0 Commands: vim /usr/lib/check_mk_agent/local/RpiFirmwareVersion chmod +x /usr/lib/check_mk_agent/local/RpiFirmwareVersion