diff options
Diffstat (limited to 'net-mgmt/victorops-nagios/files/patch-utils')
-rw-r--r-- | net-mgmt/victorops-nagios/files/patch-utils | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-mgmt/victorops-nagios/files/patch-utils b/net-mgmt/victorops-nagios/files/patch-utils new file mode 100644 index 000000000000..fe9d3a854984 --- /dev/null +++ b/net-mgmt/victorops-nagios/files/patch-utils @@ -0,0 +1,21 @@ +--- opt/victorops/nagios_plugin/bin/utils.orig 2014-06-11 11:25:07.834962605 -0500 ++++ opt/victorops/nagios_plugin/bin/utils 2014-06-11 11:26:48.367951852 -0500 +@@ -46,7 +46,8 @@ + function findStatusFile { + local f="$1" + if [ -z "$f" ]; then +- echo "STATUSDATAFILE is empty" >> $DEBUG_FILE ++ echo "STATUSDATAFILE($f) is empty" >> $DEBUG_FILE ++ echo "Looking for STATUS file in $2" >> $DEBUG_FILE + f=$($GREP "^status_file=" $2 | $SED 's/.*=//') + fi + if [ -z "$f" ]; then +@@ -82,6 +83,8 @@ + APP=/bin/$1 + elif [ -x /usr/bin/$1 ]; then + APP=/usr/bin/$1 ++ elif [ -x /usr/local/bin/$1 ]; then ++ APP=/usr/local/bin/$1 + else + APP=$1 + fi |