From 137a8577d8ef2d5c1a8d3d5a05aee8a5c72f6240 Mon Sep 17 00:00:00 2001 From: Ryan Loudfoot Date: Sat, 6 Sep 2014 17:46:48 -0400 Subject: [PATCH] Add more acceptable paths to whereis command, as per further testing. --- check_domain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_domain b/check_domain index df94a96..72c8f62 100755 --- a/check_domain +++ b/check_domain @@ -26,7 +26,7 @@ # VERSION: Version 1.0 # AUTHOR: See README. This version updated by Ryan Loudfoot (ryan@delotha.com) -PROGRAM=$(whereis -b -B /{bin,usr,etc}/* -f whois | awk '{print $2}') +PROGRAM=$(whereis -b -B /{bin,sbin,usr,etc} /{bin,sbin,usr,etc}/* -f whois | 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