Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_rpi_temp

Current Version
1.0
Last Release Date
2013-12-12
Compatible With
  • Nagios 3.x
License
GPL
Hits
27404
Files:
FileDescription
check_rpi_temp.shcheck_rpi_temp.sh

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Shows Raspberry PI CPU temperature with perfdata so it can be graphed.

The plugin does not currently contain warn/crit thresholds, just reporting.

This plugin gets its data from /sys/class/thermal instead of /opt/vc.

Requirements:
"bc" must be installed.
I wrote this plugin as a way to monitor the CPU temperature of an RPI I have outside in my garage.

Where I live it can reach -40c in the winter and +40c in the summer.
Reviews (2)
byjonathanpisarczyk, September 19, 2018
Thanks. I'm running on remote PI.

On the remote Pi you install NRPE: apt-get install nagios-nrpe-server

Configure NRPE like so: vi /etc/nagios/nrpe.cfg

...
allowed_hosts=
...
command[check_temp]=/path/to/check_rpi_temp.sh -w 60 -c 70
...
On the Nagios server configure the check like so:

check_command check_nrpe!check_temp
bytreii28, October 28, 2017
Works great. As a side note for anyone with a banana pi, you can modify this script to do the same thing by using /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/temp1_input in place of the /sys/class/thermal/thermal_zone0/temp