Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This bash script reports on and checks CPU and GPU temperature of the local Rapsberry Pi single-board computer, and warns if it exceeds the thresholds. The actual code is managed in the following GitHub rebository - please use the Issue Tracker to ask questions, report problems or request enhancements. https://github.com/acch/nagios-plugins
Current Version
1.0
Last Release Date
2018-08-09
Owner
Achim Christ
Website
http://github.com/acch/nagios-plugins
Download URL
https://github.com/acch/nagios-plugins/raw/master/check_rpi_temp.sh
License
MIT
Compatible With
Try running usermod -aG video nagios to give the nagios agent permissions to get the GPU temp information.
This script saved my bacon! But as I was not very familiar with how custom scripts worked I thought I would contribute what I know now for the less informed. Just dump the script into the plugins folder of the REMOTE device you want to monitor. For me that was /user/lib/nagios/plugins/ and you want to make it owned by root "sudo chown root:root check_rpi_temp.sh" and then make it executable "sudo chmod +x check_rpi_temp.sh" Once you have done that you need to define the command - for me this was located at /etc/nagios/nrpe.cfg Once you are there find where the other commands are already listed and put "command[check_rpi_temp]=/usr/lib/nagios/plugins/check_rpi_temp.sh" Then on the nagios server side just define the service and refer to "check_rpi_temp" and you should be good to go. Side note - it fails to provide actual data on the GPU for me - but since I was really only after the CPU temp this was good enough, though I'm sure it could be fixed by adjusting the plugin file.
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!