Browse code

Added disclaimer about the lockfile.

Nils Ohlmeier authored on 26/06/2002 13:10:29
Showing 1 changed files
... ...
@@ -17,6 +17,7 @@ LOCKFILE=serresponse
17 17
 LOCK_TIMEOUT=240
18 18
 TMP=/tmp/serresponse.$$
19 19
 MAILCOMMAND=/bin/mail
20
+HOSTN=`hostname`
20 21
 
21 22
 ############################
22 23
 
... ...
@@ -50,6 +51,10 @@ if [ ! -e $LOCKF ] ; then
50 51
 				echo "but the test with IPs in Via succeeded." >> $TMP
51 52
 				echo "  => DNS PROBLEM !?!" >> $TMP
52 53
 				echo "" >> $TMP
54
+				echo "Sending this alert is stopped for $LOCK_TIMEOUT minutes." >>$TMP
55
+				echo "If you want to re-enable alerts sooner, please remove the lock file" >> $TMP
56
+				echo "$LOCKF @ $HOSTN (you presumably need to be root to do this)" >> $TMP
57
+				echo "" >> $TMP
53 58
 				echo "command output of sipsak with fqdn follows:" >> $TMP
54 59
 				cat $TMP2 >> $TMP
55 60
 			else
... ...
@@ -57,6 +62,10 @@ if [ ! -e $LOCKF ] ; then
57 62
 				echo "but also requests with IPs in Via failed." >> $TMP
58 63
 				echo "  => DNS IS NOT THE PROBLEM !!" >> $TMP
59 64
 				echo "" >> $TMP
65
+				echo "Sending this alert is stopped for $LOCK_TIMEOUT minutes." >>$TMP
66
+				echo "If you want to re-enable alerts sooner, please remove the lock file" >> $TMP
67
+				echo "$LOCKF @ $HOSTN (you presumably need to be root to do this)" >> $TMP
68
+				echo "" >> $TMP
60 69
 				echo "first command output with fqdn follows then with IPs:" >> $TMP
61 70
 				cat $TMP2 >> $TMP
62 71
 				cat $TMP3 >> $TMP