check_rrdtraf

Marc Powell marc at ena.com
Sun Feb 17 18:57:24 CET 2008


On Feb 16, 2008, at 4:32 AM, Pili Muñoz Gargallo wrote:

> Hi Israel,
> Well that is what i get
>
> ./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c  
> 5000,5000 -w 3000,3000 -vv
> Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd
> Input warning level(kb/s): 3000
> Output warning level(kb/s): 3000
> Input critical level (kb/s): 5000
> Output critical level (kb/s): 5000
> Fetching data with command: rrdtool fetch /var/www/html/cfg/ 
> 62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan"
> RRD File Data:
>                             ds0                 ds1
>
> 1203155100: 4.4908022742e+04 6.8003888963e+04
> Raw Input Traffic Value (b/s): 32,000000
> Raw Output Traffic Value (b/s): 48,000000
> Decimal Input Traffic Value (b/s): 32,000000
> Decimal Output Traffic Value (b/s): 48,000000
> ./check_rrdtraf: line 248: [: 32,000000: integer expression expected
> ./check_rrdtraf: line 251: [: 32,000000: integer expression expected
> ./check_rrdtraf: line 254: [: 32,000000: integer expression expected
> ./check_rrdtraf: line 263: [: 48,000000: integer expression expected
> ./check_rrdtraf: line 266: [: 48,000000: integer expression expected
> ./check_rrdtraf: line 269: [: 48,000000: integer expression expected

Seems like a regional number-formatting issue. Your OS LC_NUMERIC  
settings specify a number format that uses ',' in place of '.' and the  
script (or perl?) isn't internationalized to understand that. Would  
that be the case? I'm not too familiar with i18n so can't be of much  
help.

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list