alert-monitor - a status evaluator and alert trigger
alert-monitor version 1.27 from remstats 1.0.13a usage: ../alert-monitor [options] where options are: -d nnn enable debugging output at level 'nnn' -f fff use config-dir 'fff'[/home/groups/r/re/remstats/etc/config] -h show this help -G GGG only do hosts in groups 'GGG' (a comma-separated list) -H HHH only do hosts 'HHH' (a comma-separated list) -K KKK only do hosts with keys 'KKK' (a comma-separated list) -s sss search 'sss' data samples for values  -u generate alerts for hosts unreachable via a down host
What value corresponds to what status level is set in the rrd definition or sometimes the host definition. This way an rrd definition will specify generally reasonable levels, but they can be overridden for hosts where they aren't reasonable.
For an rrd definition, an alert line looks like:
alert varname relation oklevel [warnlevel [errorlevel]]
alert varname nodata status
[The latter says that missing data for variable
For a host-specified alert level, the line looks like:
alert rrdname varname relation oklevel [warnlevel [errorlevel]]
alert rrdname varname nodata status
and the interpretation is the same, except that you're having to say which rrd this alert refers to.
The available relations are:
< (value is less than threshold) > (value is greater than threshold) = (value is equal to threshold) |< (absolute value of value is less than threshold) |> (absolute value of value is greater than threshold) delta< (difference between last two values is less than threshold) delta> (difference between last two values is greater than threshold) <daystddev (value is outside threshold * the past day's standard-deviation) <weekstddev (value is outside threshold * the past day's standard-deviation) <monthstddev (value is outside threshold * the past day's standard-deviation)
To make things more concrete for the first (normal) case, here's a real example,
alert load5 < 3 7 10
This means that if the
Since the first match is taken, it's possible to leave out the upper levels if
you don't want them to ocurr. For example if you only wanted
alert load5 < 3
and then the only possible status levels are OK and WARN.
Depending on the lines in the alerts file, the status may also
trigger alerts. A matching line in the alerts config-file will cause
[Top] [Remstats] [SourceWorks] [RRDtool] [SourceForge]
Last updated Fri May 30 13:50:41 PDT 2003 by <firstname.lastname@example.org>.