Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.25 KB

File metadata and controls

29 lines (24 loc) · 1.25 KB

Thresholds and Ranges

How Linuxfabrik plugins interpret --warning / --critical ranges.

The format follows the Nagios Plugin Development Guidelines:

  • Simple value N: a range from 0 to N inclusive (endpoints swapped if N is negative).
  • start:end: start and end point inclusive on a numeric scale, with possibly negative or positive infinity.
  • Empty value after :: positive infinity.
  • ~: negative infinity.
  • @: inverts the whole expression. A range prefixed with @ alerts when the value is inside the range (endpoints included).

Examples:

-w, -c OK if result is WARN/CRIT if
10 in (0..10) not in (0..10)
-10 in (-10..0) not in (-10..0)
10: in (10..inf) not in (10..inf)
: in (0..inf) not in (0..inf)
~:10 in (-inf..10) not in (-inf..10)
10:20 in (10..20) not in (10..20)
@10:20 not in (10..20) in (10..20)
@~:20 not in (-inf..20) in (-inf..20)
@ not in (0..inf) in (0..inf)