check_rrdtraf

Israel Brewster israel at frontierflying.com
Mon Feb 18 18:04:25 CET 2008


On Feb 17, 2008, at 8:57 AM, Marc Powell wrote:

>
> 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.

Ok, yeah, that would make sense. It is a shell script, and no, it  
isn't internationalized- partly because I didn't think of that when  
writing it, partly because I'm not entirely sure how. I suppose I  
could just do a simple string search and replace on the values to  
replace any commas with periods, but I don't really know if this would  
be the best or right way of doing it. Any of the more experienced  
programers out there have any suggestions?

-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------

>
>
> --
> 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


-------------------------------------------------------------------------
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