]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - modules/private/monitoring/plugins/check_git
7 if [ ! -d "$TMPDIR" ]; then
8 echo "gitolite UNKNOWN - impossible to create temp dir"
12 trap "rm -rf $TMPDIR" EXIT
18 OUT
=$(git clone -q git://git.immae.eu/perso/Immae/Projets/Ruby/Monitor.git 2>&1)
20 if [ -n "$OUT" ]; then
24 if [ "$ERR" != 0 ]; then
25 ERRORS
="$ERRORS git://"
29 OUT
=$(git clone -q http://git.immae.eu/perso/Immae/Projets/Ruby/Monitor.git 2>&1)
31 if [ -n "$OUT" ]; then
35 if [ "$ERR" != 0 ]; then
36 ERRORS
="$ERRORS http://"
40 OUT
=$(git clone -q https://git.immae.eu/perso/Immae/Projets/Ruby/Monitor.git 2>&1)
42 if [ -n "$OUT" ]; then
46 if [ "$ERR" != 0 ]; then
47 ERRORS
="$ERRORS https://"
51 OUT
=$(GIT_SSH_COMMAND="ssh -i $SSH_KEY -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no" git clone -q gitolite@git.immae.eu:perso/Immae/Projets/Ruby/Monitor 2>&1)
53 if [ -n "$OUT" ]; then
57 if [ "$ERR" != 0 ]; then
62 if [ -n "$ERRORS" ]; then
63 echo "gitolite CRITICAL - impossible to clone via$ERRORS|$OUTPUT"
66 echo "gitolite OK - ssh, git, http and https work|$OUTPUT"