| 1 |
The EDDIE-Tool Quick Start Guide |
|---|
| 2 |
2001-06-18 Chris Miles <chris@psychofx.com> |
|---|
| 3 |
|
|---|
| 4 |
For the impatient, here is a quickstart guide to getting EDDIE up & running. |
|---|
| 5 |
Note that the 'Quickstart' method will only get you a running monitoring system |
|---|
| 6 |
but will not get you a monitoring system customized to your environment - that |
|---|
| 7 |
is up to you, and usually takes a reasonable amount of effort working out what |
|---|
| 8 |
you want to monitor before you can monitor it. |
|---|
| 9 |
|
|---|
| 10 |
If you are installing on Windows, also read README.win32.txt |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
1. Unpack EDDIE somewhere like /opt or /usr/local, eg: |
|---|
| 14 |
$ cd /opt |
|---|
| 15 |
$ gtar xvzf /tmp/eddie.tgz |
|---|
| 16 |
will create the eddie directory with all subdirectories like bin, lib, doc. |
|---|
| 17 |
|
|---|
| 18 |
2. Point EDDIE to your Python installation. |
|---|
| 19 |
[EDDIE requires Python 2.2.1+, and has been tested with most Python versions |
|---|
| 20 |
between 2.2.1 and 2.4. Python 2.3+ is recommended.] |
|---|
| 21 |
[EDDIE on Win32 requires Python 2.3 or newer.] |
|---|
| 22 |
So edit the first line of eddie/bin/eddie.py to point to your python. |
|---|
| 23 |
Eg: |
|---|
| 24 |
$ which python |
|---|
| 25 |
/usr/bin/python |
|---|
| 26 |
$ vi /opt/eddie/bin/eddie.py |
|---|
| 27 |
#!/usr/bin/python |
|---|
| 28 |
..etc.. |
|---|
| 29 |
|
|---|
| 30 |
3. Create a configuration file in eddie/config/ called eddie.cf |
|---|
| 31 |
The easiest way to do this is to copy eddie/config.sample/eddie.cf |
|---|
| 32 |
and modify it to suit your needs. |
|---|
| 33 |
Eg: |
|---|
| 34 |
$ cd /opt/eddie |
|---|
| 35 |
$ mkdir config |
|---|
| 36 |
$ cp config.sample/eddie.cf config/eddie.cf |
|---|
| 37 |
$ vi config/eddie.cf |
|---|
| 38 |
the documentation in eddie.cf should explain enough to get you started. |
|---|
| 39 |
|
|---|
| 40 |
4. At the bottom of eddie.cf remove all INCLUDE lines and add a line like: |
|---|
| 41 |
INCLUDE 'test.rules' |
|---|
| 42 |
|
|---|
| 43 |
5. Now create a file called test.rules in the same directory as eddie.cf |
|---|
| 44 |
Eg: |
|---|
| 45 |
$ cd /opt/eddie |
|---|
| 46 |
$ vi config/test.rules |
|---|
| 47 |
|
|---|
| 48 |
6. Add the following lines, as they appear below between the '###'s: |
|---|
| 49 |
|
|---|
| 50 |
###################################################### |
|---|
| 51 |
PROC initcheck: |
|---|
| 52 |
name='init' |
|---|
| 53 |
rule='not exists' |
|---|
| 54 |
action=email("root", "%(name)s on %(h)s is not running") |
|---|
| 55 |
|
|---|
| 56 |
FS rootfs: |
|---|
| 57 |
fs='/' |
|---|
| 58 |
rule='pctused >= 90' |
|---|
| 59 |
action=email("root", "%(mountpt)s is at %(pctused)s%% on %(h)s") |
|---|
| 60 |
###################################################### |
|---|
| 61 |
|
|---|
| 62 |
These are two basic EDDIE directives. The first is a process check which |
|---|
| 63 |
will alert if the init process is not running. 'name' defines the |
|---|
| 64 |
process name, 'rule' defines the check to make (in this case the check |
|---|
| 65 |
evaluates true if the process name does not exist in the process list) |
|---|
| 66 |
and 'action' defines what to do if the rule evaluates to true. |
|---|
| 67 |
|
|---|
| 68 |
The second directive is a filesystem check which checks if the root |
|---|
| 69 |
filesystem is 90% or more full. 'fs' defines the filesystem to check, |
|---|
| 70 |
'rule' defines the rule to evaluate, in this case it is a simple test |
|---|
| 71 |
which will be executed in a Python environment; 'pctused' will contain the |
|---|
| 72 |
current percentage full of the filesystem in question, and so the rule |
|---|
| 73 |
will be true if 'pctused' is >= 90%. The 'action', again, defines what |
|---|
| 74 |
action to take if the rule is true. |
|---|
| 75 |
|
|---|
| 76 |
7. Start EDDIE running by starting bin/eddie.py |
|---|
| 77 |
Eg: |
|---|
| 78 |
$ /opt/eddie/bin/eddie.py |
|---|
| 79 |
You can watch the log file, at the location you defined in eddie.cf. |
|---|
| 80 |
In this case, if init is running and / is less than 90% full, root |
|---|
| 81 |
will get no alert emails. You can force this by changing the PROC |
|---|
| 82 |
name to some non-existence process name (say 'foo') and lowering the |
|---|
| 83 |
threshold of the FS rule, like 'pctused >= 1'. If you get emails from |
|---|
| 84 |
these tests then the basic EDDIE functionality is working. |
|---|
| 85 |
|
|---|
| 86 |
8. Customize the EDDIE configuration by examining the files in config.sample |
|---|
| 87 |
and reading the User's Manual. |
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 |
-- |
|---|
| 91 |
$Id$ |
|---|