[mrtg] Re: max int error

Justin Lott lottj at millbrookprinting.com
Tue Mar 21 03:14:23 MET 2000


Im running into this problem too when trying to graph disk 
utilization (2.8.12 on *BSD). I can find the maxint arguments but 
have no idea how to fix it.

      'maxbytes[]' =>
      ['(($arg =~ /^[0-9]+$/) && ($arg <= (2**31)-1))',
         '"$arg must be a Number smaller than maxint"'],

      'maxbytes1[]' =>
      ['(($arg =~ /^[0-9]+$/) && ($arg < (2**31)-1))',
         '"$arg must be a Number smaller than maxint"'],

      'maxbytes2[]' =>
      ['(($arg =~ /^[0-9]+$/) && ($arg < (2**31)-1))',
         '"$arg must be a Number smaller than maxint"'],


>I'm not sure I understand, isn't (2^32-1) = 4294967295 greater than
>2488000000.
>
>lists at ripper.informatik.uni-ulm.de wrote:
>>
>>  > I'm currently running mrtg-2.8.8 on Solaris 2.5.1.  We've just
>>  > installed an OC48 POS interface 2488 Mb/s and want MRTG to monitor it.
>>  >
>>  > I'm graphing bits/s on my graphs
>>
>>  You mean "Options[..]: bits"?
>>
>>  > and configure the MaxBytes option
>>  > with the actual bit/s value of an interface in order to calculate
>>  > the utilized percentage.
>>
>>  > MaxBytes[router]: 2488000000
>>
>>  This is still Max_Bytes_, i.e. 311000000. rateup will do the bytes-to-bits
>>  calculation for MaxBytes for you.
>>
>>  > CFG Error in "maxbytes[router]", line 126: 2488000000 must be a Number
>>  > smaller than maxint.
>>
>>  mrtg refuses to handle MaxBytes values bigger than 'maxint' (2^32-1). I'm
>>  not sure why.
>>
>>  Rainer
>  > --
>  > Rainer.Bawidamann at informatik.uni-ulm.de

-- 
-----------------------------------------------
PGP Public key at: http://pgpkeys.mit.edu:11371/
-----------------------------------------------
Justin Lott
Systems Engineer
Millbrook Printing Company
http://www.millbrookprinting.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org



More information about the mrtg mailing list