[Nagiosplug-devel] New Threshold Syntax

Stephan Stephan at quantentunnel.de
Sat Jun 29 22:10:32 CEST 2013


Strange… Somehow I got superscripted ones.

Anyhow… I found a link describing the notation:
https://en.wikipedia.org/wiki/Interval_(mathematics)

Am 29.06.13 15:14, schrieb Stephan:
> 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
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null





More information about the Devel mailing list