Home Directory

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

Directory

Omally01

Reviews(1)
byOmally01, July 10, 2020
Check Raspberry Pi Temperature
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.