|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| LegacyRange | Utility class for evaluating thresholds. |
| LegacyThreshold | This class represent a parser/evaluator for the old threshold syntax. |
| ReturnValueBuilder | This object takes the responsability to build and configure the return value object and the performance data. |
| ThresholdsEvaluator | This object take responsability of checking a pair value-metric agains all
the ranges defined for such metric and returns the right Status
object. |
| ThresholdsEvaluatorBuilder | Builds a ThresholdsEvaluator object. |
| Enum Summary | |
|---|---|
| Prefixes | |
| Exception Summary | |
|---|---|
| InvalidRangeSyntaxException | Exception thrown when a range syntax error is found. |
| PrematureEndOfRangeException | Exception thrown when the parse string is not complete. |
| RangeException | Base class for the range parsing exceptions. |
This package contains all the classes used to parse and manage new thresholds format according to the Nagios specification RFC (http://nagiosplugins.org/rfc/new_threshold_syntax). As per the RFC:
Threshold arguments are specified like: --threshold={threshold definition} The threshold definition is a subgetopt format of the form: metric={metric},ok={range},warn={range},crit={range},unit={unit}, prefix={SI prefix} Where:
- ok, warn, crit are called "levels"
- any of ok, warn, crit, unit or prefix are optional
- if ok, warning and critical are not specified, then no alert is raised, but the performance data will be returned
- the unit can be specified with plugins that do not know about the type of value returned (SNMP, Windows performance counters, etc.)
- the prefix is used to multiply the input range and possibly for display data. The prefixes allowed are defined by NIST:
- http://physics.nist.gov/cuu/Units/prefixes.html
- http://physics.nist.gov/cuu/Units/binary.html
- ok, warning or critical can be repeated to define an additional range. This allows non-continuous ranges to be defined
- warning can be abbreviated to warn or w
- critical can be abbreviated to crit or c
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||