Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Measure the Raspberry Pi board temperature and check against thresholds. Supports Celsius and Fahrenheit.
Current Version
0.2
Last Release Date
2019-09-30
Owner
Claudio Kuenzler
Website
https://github.com/Napsty/check_rpi_temp
Download URL
https://raw.githubusercontent.com/Napsty/check_rpi_temp/master/check_rpi_temp.py
License
GPL
Compatible With
check_rpi_temp is a monitoring plugin written in Python (compatible with Python2 and Python3) and measures the board temperature of a Raspberry Pi computer. It allows to check thresholds against Celsius and Fahrenheit values. Easy and automatic graphing thanks to the performance data.
The usage is straight forward:
pi@raspberrypi:~ $ /usr/lib/nagios/plugins/check_rpi_temp.py -w 50 -c 60 RPI TEMP OK: Temperature 40.80 degrees c |rpi_temp=40.80;50.00;60.00;;
Or if you prefer Fahrenheit:
pi@raspberrypi:~ $ /usr/lib/nagios/plugins/check_rpi_temp.py -w 90 -c 105 -u f RPI TEMP CRITICAL: Temperature 105.44 is higher than critical threshold (105.00) |rpi_temp=105.44;90.00;105.00;;
Important note: You need to make sure the user running the command is able to execute vcgencmd. For example if you use the 'nagios' user (default in an NRPE setup), the command fails:
nagios@raspberrypi:~$ /usr/bin/vcgencmd measure_temp VCHI initialization failed
By default the "pi" and the "root" user are able to run this command. So either define a sudoers rule or create a new user with the same privileges as the pi user.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!