[Nagiosplug-devel] Best practice for thresholding

Ton Voon ton.voon at opsera.com
Mon Jun 22 21:42:17 CEST 2009

On 22 Jun 2009, at 18:22, John Vincent wrote:

> So I've been attempting to use check_memcached and in the process was
> cleaning up some invalid perfdata output. I also noticed that the
> thresholding is somewhat broken. This plugin, like many database
> plugins, has a hit ratio metric. Hit ratio metrics make the most sense
> when approcahed from a "warning/critical below X%" (at least in my
> mind). So if my hit ratio drops below 75%, I want a warning and if it
> goes below 50% I want a critical.
> What's the best way to handle this with Nagios::Plugin? Should the
> logic be done in the script or should it be done in the module itself?

Nagios::Plugin already supports the thresholds defined in the  
guidelines: http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

So you should already be able to use the threshold routines in N::P.

If it doesn't work properly, then that would be a bug.


More information about the Devel mailing list