Monitoring Raspberry Pi fw versions with check_mk

By | 2 June 2014

Modified to work with my omd/check_mk setup for monitoring firmware versions on rpi farm.


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


vim /usr/lib/check_mk_agent/local/RpiFirmwareVersion
chmod +x /usr/lib/check_mk_agent/local/RpiFirmwareVersion

Leave a Reply

Your email address will not be published. Required fields are marked *