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

Directory Tree

check_rpi_temp

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

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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