From aa68be9a5a86dddc853c4cd6c211de8912699f60 Mon Sep 17 00:00:00 2001 From: Ryan Loudfoot Date: Sat, 6 Sep 2014 17:46:11 -0400 Subject: [PATCH] Add more acceptable paths to whereis command, as per further testing. --- check_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_temp.sh b/check_temp.sh index e7ec9e3..d6f7868 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -37,7 +37,7 @@ VERSION="Version 0.93" AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)" # Sensor program -SENSORPROG=$(whereis -b -B /{bin,usr,etc}/* -f sensors | awk '{print $2}') +SENSORPROG=$(whereis -b -B /{bin,sbin,usr,etc} /{bin,sbin,usr,etc}/* -f sensors | awk '{print $2}') # Ryan's note: utils.sh is installed with nagios-plugins in with the plugins # Check if utils.sh exists. This lets you use check_domain in a testing environment