Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_rpi_temp
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!
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.
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
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