Subversion Repositories sysadmin_scripts

Rev

Rev 89 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

This is a simple script to check if a service is up on a network. It is
designed to be run via cron.

Define one or more sites to check in monitorNetwork.yaml (see monitorNetwork.yaml.sample)
Setting defaults allows you to not have to type something over and over (defaults initialize
unset values)

The script will run each test whenever run. If a test fails, a flag file is created
in /tmp/TESTNAME.down, with the number of tests left before we report.

On subsequent runs, will decrement counts (read from flag file) until that reaches
0, then report failure. It will change the value to -1 at that point, and not report again.

When site is back up, will automatically clean flag file.

NOTE: if ping test is used, script must be run as root.

Generated by GNU Enscript 1.6.5.90.