2
require_once("docutil.php");
3
page_head("Watchdogs");
7
A <b>watchdog</b> is a mechanism for detecting system states
8
(e.g. full filesystems, database failures, etc.)
9
that require immediate attention by project staff.
10
Typically the desired response to such a condition is
11
to notify a pager, sending a short text description.
14
BOINC provides a framework for defining watchdogs:
18
A set of <b>watchdog scripts</b> are run from cron.
19
Each script checks for an error condition,
20
and present, it appends a descriptive line to an error log file.
21
An example is <b>wd_nresults_changing.php</b>,
22
which makes sure that the number of results changes.
25
The script <b>wd.php</b>, also run from cron,
26
scans the error log files.
27
If any has been updated since the last run,
28
it sends email to a set of recipients,
29
containing the last line of the file.
33
These files are in the sched/ directory.