-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc.sample
61 lines (44 loc) · 1.33 KB
/
config.inc.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- shell-script-mode -*-
#
# config
#
# SMS notification
PHONE_NUM=+49XXXXXXXXXXXXXXX
SIMPLEFAXDE_USER=example@example.com
export SIMPLEFAXDE_PASS=XXXXXXXXXXXXXXX
# Do some logging.
#VERBOSE=0
# Do a failure test
#FAILTEST=0
# you may want to set program pathes here if it differs
#NC=/bin/nc
#WGET=/usr/bin/wget
#RM=/bin/rm
#TOUCH=/bin/touch
#MKDIR=/bin/mkdir
#DIG=/usr/bin/dig
#SMS_CLIENT=/usr/local/bin/simple_fax_sms
my_own_tests() {
[ "$VERBOSE" -eq "1" ] && echo "+ Test DNS"
test_dns ${STATE_DIR}"/.dns" \
ns10.example.com www.example.com \
"DNS: ns10.example.com is down" \
"DNS: ns10.example.com is up"
[ "$VERBOSE" -eq "1" ] && echo "+ Test WWW"
test_http ${STATE_DIR}"/.http" \
"https://example.com" "HTML" \
"HTTP: example.com is down" \
"HTTP: example.com is up"
[ "$VERBOSE" -eq "1" ] && echo "+ Test SMTP"
test_smtp ${STATE_DIR}"/.smtp" \
mail.example.com "ESMTP" \
"SMTP: example.com is down. Run test: https://mxtoolbox.com/SuperTool.aspx?action=smtp%3amail.example.com" \
"SMTP: example .comis up"
[ "$VERBOSE" -eq 1 ] && echo "+ Test SSH"
test_ssh ${STATE_DIR}"/.ssh" \
example.com "SSH" \
"SSH: example.com is down" \
"SSH: example.com is up" \
22
}
# End of configuration.