[Nagiosplug-devel] New threshold syntax - changes

Richard Edward Horner rich at richhorner.com
Tue Oct 13 20:06:59 CEST 2009


OK, well, reading that page, I think it's an improvement over the
current spec but I want to stress that ranges are not conceptually
appropriate for a lot of situations and I doubt end users will want to
think of their check_users call as either the OK range being 0 to 10
or the critical range being 11 to infinity. I think making the end of
the range like you mentioned helps with this but you're still left
with the problem of you can't do:

check_users --critical=10

and

check_disk --critical=10

and have them both behave as expected. One of them will require some
"range" specific syntax when all I want to do is specify a level (and
it's obvious which way it should go) and not a range. Even if the
program itself is going to internally convert it into a range to do
it's check, how the thing is programmed shouldn't dictate how the user
has to interact with it.

Thanks, Rich(ard)

On Tue, Oct 13, 2009 at 5:37 PM, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Richard Edward Horner wrote:
>> I don't have any real concerns with 1, 2 or 4.
>>
>> I think 3 is an important clarification.
>>
>> One thing that has bugged me with thresholds is that the spec is only
>> useful if it's followed but most plugins don't follow it and just
>> implement what's quick. I'll give the pertinent example.
>
> Not all plugins use the thresholds library. If the --help output doesn't
> say something like "--warning=THRESHOLD" with a comment in the notes
> pointing to the developer guidelines section explaining ranges, it's
> most likely not "real" thresholds. We have modified a few plugins to the
> real thresholds library in the last years but now the goal would be
> writing a new enhanced one and porting all plugins to it.
>
>
> Any plugin using this specification will have to go trough the library
> (it can't really be done otherwise, as it would require lot of code
> which should be already written!). The libnagiosplug project will also
> make this code usable easily by 3rd party plugins (and this will also be
> implemented in the Nagios::Plugin Perl module, obvisously...
>
>> I think if you're going to have a spec, it needs to be followed. If
>> you have a spec and it's not followed, it's confusing and worse than a
>> waste of time as it is probably costing ppl time.
>
> I should've sent it with the previous email. The new spec is here:
> http://nagiosplugins.org/rfc/new_threshold_syntax
>
> - --
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrUut8ACgkQ6dZ+Kt5BchZFoQCdEZKxuAgUt3ZuWEZVwNpC+el/
> CgIAnjQcPlJ+mivscD8fIYQBq1WonPwo
> =nw67
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________________
> 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
>



-- 
Richard Edward Horner
Engineer / Composer / Electric Guitar Virtuoso
richhorner.com | rhosts.net | sabayonlinux.org




More information about the Devel mailing list