summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-03-24 02:44:17 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-03-24 02:44:17 (GMT)
commit21c0dad0c5fc922e3228b4be9d9b803aa554fb1b (patch)
tree34cb19a0f3dbb555d25d3fb906557e40cfa33693 /tools
parent75264bc16a77ee1ebfcb9859e649c3cf0dc2fee5 (diff)
downloadmonitoring-plugins-21c0dad0c5fc922e3228b4be9d9b803aa554fb1b.tar.gz
Bug fixes
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@456 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mail_error3
-rwxr-xr-xtools/sfsnapshot1
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/mail_error b/tools/mail_error
index 4349c21..184827e 100755
--- a/tools/mail_error
+++ b/tools/mail_error
@@ -13,10 +13,9 @@ while getopts "o:m:" c; do
13 esac 13 esac
14done 14done
15shift $(($OPTIND-1)) 15shift $(($OPTIND-1))
16echo "output_file=$output_file email=$email"
17 16
18[[ -z $1 ]] && die "Must specify command" 17[[ -z $1 ]] && die "Must specify command"
19 18
20if ! "$@" > $output_file 2>&1 ; then 19if ! "$@" > $output_file 2>&1 ; then
21 mail -s "mail_error fail: $@" $email < $output_file 20 mail -s "mail_error fail: $1" $email < $output_file
22fi 21fi
diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index 8e82f29..665285a 100755
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
@@ -53,6 +53,7 @@ function make_dist {
53} 53}
54 54
55# Set working variables 55# Set working variables
56PATH=$HOME/local/bin:$PATH
56PROJECT=nagiosplug 57PROJECT=nagiosplug
57IN=${HOME}/tmp_snapshot 58IN=${HOME}/tmp_snapshot
58OUT_SERVER="shell.sf.net" 59OUT_SERVER="shell.sf.net"