Browse code

Added delay after connection refused.

Nils Ohlmeier authored on 09/09/2002 03:31:10
Showing 1 changed files
... ...
@@ -46,13 +46,16 @@ if [ ! -e $LOCKF ] ; then
46 46
 		echo "produced this output:" >> $TMP2
47 47
 		$SIPSAKCMD >> $TMP2 2>&1
48 48
 		if [ $? -eq 3 ] ; then
49
+			grep "Connection refused" $TMP2
50
+			if [ $? -eq 0 ] ; then
51
+				sleep 15
52
+			fi
49 53
 			echo "  $SIPSAKNCMD" >> $TMP3
50 54
 			echo "produced this output:" >> $TMP3
51 55
 			$SIPSAKNCMD >> $TMP3 2>&1
52 56
 			if [ $? -le 1 ] ; then
53 57
 				echo "ser did not responses (fast enough) on the sipsak requests with fqdn in Via" >> $TMP
54 58
 				echo "but the test with IPs in Via succeeded." >> $TMP
55
-				echo "  => DNS PROBLEM !?!" >> $TMP
56 59
 				echo "" >> $TMP
57 60
 				echo "Sending this alert is stopped for $LOCK_TIMEOUT minutes." >>$TMP
58 61
 				echo "If you want to re-enable alerts sooner, please remove the lock file" >> $TMP
... ...
@@ -64,7 +67,6 @@ if [ ! -e $LOCKF ] ; then
64 67
 			else
65 68
 				echo "ser did not responses (fast enough) on requests with fqdn in Via" >> $TMP
66 69
 				echo "but also requests with IPs in Via failed." >> $TMP
67
-				echo "  => DNS IS NOT THE PROBLEM !!" >> $TMP
68 70
 				echo "" >> $TMP
69 71
 				echo "Sending this alert is stopped for $LOCK_TIMEOUT minutes." >>$TMP
70 72
 				echo "If you want to re-enable alerts sooner, please remove the lock file" >> $TMP