How Linuxfabrik plugins interpret --warning / --critical ranges.
The format follows the Nagios Plugin Development Guidelines:
- Simple value
N: a range from 0 toNinclusive (endpoints swapped ifNis 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) |