Fix for check_load plugin

Andreas Ericsson ae at op5.se
Thu Mar 24 11:56:19 CET 2005


Please re-post to nagiosplug-devel.
This list focuses on the workings of the nagios core, as opposed to the 
plugins. The lists are entirely separate.

Laurence P Dawson wrote:
> There is a minor problem in the check_load.c plugin. It checks for
> is_intnonneg for the values of parameters that are supplsed to be
> floats. 
> There is a definite advantage for us in allowing float values, as using
> a value like 1.9 instead of 2 reduces notifications due to 'flapping'.
> 
> 
> /************************************************/
> 
> 189c189
> < 			if (is_intnonneg (optarg)) {
> ---
> 
>>			if (is_numeric (optarg)) {
> 
> 205c205
> < 			if (is_intnonneg (optarg)) {
> ---
> 
>>			if (is_numeric (optarg)) {
> 
> 
> /************************************************/
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
> Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
> Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
> by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click




More information about the Developers mailing list