Subversion Repositories sysadmin_scripts

Rev

Rev 91 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 91 Rev 92
Line 15... Line 15...
15
 
15
 
16
my $config = {
16
my $config = {
17
   'defaults' => { # defaults if not specified in site
17
   'defaults' => { # defaults if not specified in site
18
      'timeout' => 60, # the default timeout, in seconds
18
      'timeout' => 60, # the default timeout, in seconds
19
      'failure count' => 0, # the number of successive failures before a report
19
      'failure count' => 0, # the number of successive failures before a report
20
      'report to' => 'something',
20
      'report to' => 'me@example.com',
21
      'report type' => 'mail',
21
      'report type' => 'mail',
22
      'report from' => 'root',
22
      'report from' => 'root@localhost',
23
      'type' => 'ping'
23
      'type' => 'ping'
24
   },
24
   },
25
   'sites to check' => { # all sites to check
25
   'sites to check' => { # all sites to check
26
      'name of site' => { # this is for display purposes only
26
      'some web site' => { # this is for display purposes only
27
         'url' => 'http://example.com', # the actual URL to use
27
         'url' => 'http://example.com', # the actual URL to use
28
         'type' => 'lwp' # type of test to run
28
         'type' => 'lwp' # type of test to run
29
      },
29
      },
30
      'name of another site' => {
30
      'something that responds to icmp' => {
31
         'url' => '192.168.1.50',
31
         'url' => '192.168.1.50',
32
         'type' => 'ping',
32
         'type' => 'ping',
33
         'timeout' => 20 # 20 second timeout
33
         'timeout' => 20 # 20 second timeout
34
      },
34
      },
-
 
35
      'site with netcat server running' => {
-
 
36
         'url' => '192.168.1.51',
-
 
37
         'type' => 'netcat',
-
 
38
         'port' => 45654,
-
 
39
         'timeout' => 3 # 20 second timeout
-
 
40
      },
35
   }
41
   }
36
};
42
};
37
 
43
 
38
# types of tests are listed in the code, and each test can take.
44
# types of tests are listed in the code, and each test can take.
39
# different parameters. Read the comments at the top of the file
45
# different parameters. Read the comments at the top of the file