89 |
rodolico |
1 |
This is a simple script to check if a service is up on a network. It is
|
|
|
2 |
designed to be run via cron.
|
|
|
3 |
|
|
|
4 |
Define one or more sites to check in monitorNetwork.yaml (see monitorNetwork.yaml.sample)
|
|
|
5 |
Setting defaults allows you to not have to type something over and over (defaults initialize
|
|
|
6 |
unset values)
|
|
|
7 |
|
|
|
8 |
The script will run each test whenever run. If a test fails, a flag file is created
|
|
|
9 |
in /tmp/TESTNAME.down, with the number of tests left before we report.
|
|
|
10 |
|
|
|
11 |
On subsequent runs, will decrement counts (read from flag file) until that reaches
|
|
|
12 |
0, then report failure. It will change the value to -1 at that point, and not report again.
|
|
|
13 |
|
|
|
14 |
When site is back up, will automatically clean flag file.
|
|
|
15 |
|
|
|
16 |
NOTE: if ping test is used, script must be run as root.
|