[Nagiosplug-devel] New Threshold Syntax

Stephan Stephan at quantentunnel.de
Sat Jun 29 15:14:11 CEST 2013


Am 29.06.13 13:11, schrieb William Leibzon:
> The current proposal for new syntax is at
> http://nagiosplugins.org/rfc/new_threshold_syntax
I'd like to add to this:

> Complex range
> endpoints are excluded from the range if () are used, otherwise
endpoints are included in the range

Why not use the "mathematical syntax"? For this we need [] instead of ()

Examples:
[1..5] means 1 ≤ x ≤ 5
[1..5[ means 1 ≤ x < 5
]1..5] means 1 < x ≤ 5
]1..5[ means 1 < x < 5
And instead of specifying ^ before the bracket, let's put it inside like 
we have it in regular expression ranges:
[^1..5] means x < 1 or x > 5
[^1..5[ means x < 1 or x ≥ 5
]^1..5] means x ≤ 1 or x > 5
]^1..5[ means x ≤ 1 or x ≥ 5





More information about the Devel mailing list