Buggy docs for check threshold and ranges?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
robguttman
Posts: 1
Joined: Wed Sep 15, 2010 3:37 pm

Buggy docs for check threshold and ranges?

Post by robguttman »

I'm new to writing nagios checks. I'm trying to follow the developer guidelines for threshold and ranges (i.e., [@]start:end) but to me the docs seems to be buggy:

http://nagiosplug.sourceforge.net/devel ... HOLDFORMAT

For example, rule #5 (without '@') and #6 (with '@') both state that the ranges are *inclusive*. However, the example that follows in Table 3 seems to indicate that the range is *exclusive* for rule #5 (without '@'). So which is it?

Another example, in Table 4 the last example is "check_stuff -c10:20" with the meaning stated as "Critical if 'stuff' is 10 to 20". But this differs from both the prior example in the same table as well as rule #5 (that without the '@' the value would need to be *outside* the range, not inside of it, to trigger an alert).

Am I using the correct, up-to-date docs? If not, which docs should I be using? If I am using the correct docs, can someone please tell me what the correct behavior should be (and also ideally fix the docs)?

Thanks!
- Rob
Locked