Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2005 17:00:44 +0100
From:      Rainer Duffner <rainer@ultra-secure.de>
To:        Blaz Zupan <blaz@si.FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: nagios-plugins-1.4.0.a3_1
Message-ID:  <41F51BAC.5040306@ultra-secure.de>
In-Reply-To: <20050124065545.F20677@titanic.medinet.si>
References:  <41F47ED0.2070004@ultra-secure.de> <20050124065545.F20677@titanic.medinet.si>

next in thread | previous in thread | raw e-mail | index | archive | help
Blaz Zupan wrote:

>> is it possible that the check_load plugin doesn't work on 4.10 
>> anymore, but only on 5.3 ?
>>
>> Witness:
>>
>> root@mail3# /usr/local/libexec/nagios/check_load -w 15,10,5 -c 30,25,20
>> Warning threshold must be float or float triplet!
>> Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
>>
>> is-insrv-aug-011# /usr/local/libexec/nagios/check_load -w 15,10,5 -c 
>> 30,25,20
>> OK - load average: 0.00, 0.00, 
>> 0.00|load1=0.000000;15.000000;30.000000;0.000000 
>> load5=0.000000;10.000000;25.000000;0.000000 
>> load15=0.000000;5.000000;20.000000;0.000000
>>
>> First: 4.10
>> Second: 5.3
>
>
> No. Works for me:
>
> bigbrother:/home/blaz> uname -a
> FreeBSD bigbrother.amis.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue 
> Jun  1 17:12:11 CEST 2004     
> root@bigbrother.amis.net:/usr/obj/usr/src/sys/BIGBROTHER  i386
> bigbrother:/home/blaz> /usr/local/libexec/nagios/check_load -w 15,10,5 
> -c 30,25,20
> OK - load average: 1.98, 1.53, 
> 1.43|load1=1.975098;15.000000;30.000000;0.000000 
> load5=1.530762;10.000000;25.000000;0.000000 
> load15=1.431641;5.000000;20.000000;0.000000
>
> Do you by any chance have any locale settings on the 4.10 box, but not 
> on the 5.3 box? There is a known problem with locales and the latest 
> nagios versions.


Hm. Now that you mention it... yes.

I changed login.conf a bit and now it works.
Strange.
The top(1) output looks the same on both machines, so the plugin uses 
some other way to determine load, as it seems.


Thanks a lot.


cheers,
Rainer

-- 
===================================================
~     Rainer Duffner - rainer@ultra-secure.de     ~
~           Freising - Munich - Germany           ~
~    Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41F51BAC.5040306>