summaryrefslogtreecommitdiff
path: root/cfg/sample.cfg
blob: e6a032522e02bce3d1a1ceb91fdbe260096565e0 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
#  This is the sample configuration file which is installed with Custodian.
#
#  Lines beginning with "#" are comments and are ignored, otherwise the general
# form of lines is:
#
#  TARGET must (not) run SERVICE otherwise 'some text'.
#
#  TARGET is typically a hostname, or a URL, but it might also a macro.  In this
# context a macro is a simple list of hostnames.  Any line involving a macro
# as a target will be replaced, inline, once for each target.
#
#  For example the following two snippets are equivilent:
#

##
## Snippet 1
##
#    MACRO_FOO is host1.example.com and host2.example.com.
#    MACRO_FOO must ping otherwise 'ping failure'.
##

##
## Snippet 2
##
#    host1.example.com must ping otherwise 'ping failure'.
#    host2.example.com must ping otherwise 'ping failure'.
##



#
#  Now we have some simple tests
#

#
#  Bytemark hosts a mirror of various things, for the benefit of our users
# and the general UK network.
#
#  Test that this mirror is available
#
mirror.bytemark.co.uk must run ftp   otherwise 'mirror ftp failure'.
mirror.bytemark.co.uk must run rsync otherwise 'mirror rsync failure'.
mirror.bytemark.co.uk must run ping  otherwise 'mirror ping failure'.

#
#  Ensure the Bytemark blog is active
#
blog.bytemark.co.uk must ping otherwise 'blog failure?'.
http://blog.bytemark.co.uk/ must run http with content 'Bytemark Blog' otherwise 'blog is not available'.


#
#  Define a macro for the Bytemark DNS servers
#
DNSHOSTS is a.ns.bytemark.co.uk and b.ns.bytemark.co.uk and c.ns.bytemark.co.uk.

#
#  Test that they return valid things.
#
DNSHOSTS must run dns for bytemark.co.uk resolving NS as '80.68.80.26;85.17.170.78;80.68.80.27'.
DNSHOSTS must run dns for www.bytemark.co.uk resolving A as '212.110.161.177'.
DNSHOSTS must run dns for bytemark.co.uk resolving MX as '89.16.184.148;89.16.184.149;89.16.184.150'.
DNSHOSTS must run dns for support.bytemark.co.uk resolving MX as '89.16.184.148;89.16.184.149;89.16.184.150'.
DNSHOSTS must run dns for admin.bytemark.co.uk resolving A as '212.110.161.144'.
DNSHOSTS must run dns for bytemark-hosting.co.uk resolving A as '212.110.161.177'.



#
#  TCP-protocol tests.
#
#  The "tcp" probe is a general-purpose one that attempts to connect to the host-specified,
# on the port-specified, and optionally look for some text in the banner returned from that
# connection.
#
#  Here you'll see we've duplicated two other protocol tests:
#
#    mail.steve.org.uk must run smtp        otherwise 'email fail'.
#    ssh.steve.org.uk  must run ssh on 2222 otherwise 'ssh fail'.
#

#  SMTP
#
mail.steve.org.uk must run tcp on 25 with banner 'smtp' otherwise 'mail fail'.

#
#  SSH
#
ssh.steve.org.uk must run tcp on  2222 with banner 'ssh' otherwise 'ssh fail'.