[Nagiosplug-devel] RFC: New threshold syntax

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Mar 20 12:09:45 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19/03/08 05:48 PM, Max wrote:
> Thomas, Ton,
> 
> Do both of you think that using RPN-style notation would be too
> burdensome on users?  It resolves a lot of the issues you are
> discussing and meets Andreas' request to have argument parsing done in
> a fashion that doesn't cause compatibility issues with buggy /
> problematic shells ...
> 
> CPU check ...
> 
> --warning 'kernel,80%,gte,system,90%,gte' --critical 'system,99%,gt'
> 
> Range check
> 
> --warning 'bpm,60,120,notwithin'
> 
> where order is
> 
> metric,number[,number]?,operator
> 
> Something along those lines?

Well, if you want something like that why not making it like my
suggestion which:

1. is a bit clearer: just like your example but using name=value pairs
instead of values alone
2. Is a standard way of specifying parameters, and is parseable using
standard libraries.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH4kX56dZ+Kt5BchYRAkpQAKCdTYzNDqxoKPwW0EOcNvQ3Dv3dSwCffPqf
DK2t0Nv5r0vp7aKkyYHgRc0=
=7nJO
-----END PGP SIGNATURE-----




More information about the Devel mailing list