You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
362 B
Bash
17 lines
362 B
Bash
#!/bin/bash
|
|
|
|
eval "$(<~/.ssh/.ssh-agent)" >/dev/null
|
|
|
|
#for arg in $@; do echo "#${arg}#"; done
|
|
|
|
# This crazy shit is done because of issues with passing quotes in
|
|
precmd=`echo $* | sed 's/\-C.*//'`
|
|
cmd=`echo "$*" | sed 's/.*\-C[[:space:]]\+//'`
|
|
|
|
#echo "#${precmd}#${cmd}#"
|
|
|
|
exec /usr/local/monitoring/nagios/libexec/check_by_ssh $precmd -C "$cmd" 2>&1
|
|
|
|
exit $?
|
|
|