add max error and improve general behaviour

This commit is contained in:
2014-12-09 13:53:06 +01:00
parent 3bbfa6f681
commit bf63000ff7
3 changed files with 81 additions and 24 deletions
+13
View File
@@ -2,6 +2,19 @@ TOEMAIL=destination@email.com
FREMAIL=sender@email.com
SENDMAILPATH=/usr/sbin/sendmail
LOGFILE=monitor.log
COUNTFILE=count.log
TEMPDIR=temp
# This link is added if an index error appears.
# You can use update-index-ssh-link.sh to open ssh:// links
SSHCONN=ssh://user@host.tld
# Maximum $MAXERROR mails if an error occurs.
# Will be reset after $RESET runs of script
MAXERROR=3
RESET=24
NAME[0]=shortname1
HOST[0]=example.com