Re: New Threshold Syntax
Stephan <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 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