[mrtg] Re: workarounds?: Rateup ERROR: Can't cope with 3870363044, sorry!

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Aug 30 21:31:39 MEST 2000

George Nease wrote:

> Rateup ERROR: Can't cope with 3870363044, sorry!
> WARNING: rateup died from Signal 0 with Exit Value 1 when doing
> router 'upstreamaggregate'
>  Signal was 0, Returncode was 1

This error occurs when an option/parameter cannot be parsed.
Probably there's something wrong when MRTG builds the parameter
string for the rateup call.

Just as an example: use of "%6lf" where " %5lf" would be better.
For small enough numbers there's no difference, for larger numbers
is does matter.  An example with 123, 1234, 12345 and 123456:

   printf("The number is%6lf in%4lf seconds\n");
   The number is   123 in 300 seconds  --> 7 words
   The number is  1234 in 300 seconds  --> 7 words
   The number is 12345 in 300 seconds  --> 7 words
   The number is123456 in 300 seconds  --> 6 words
If you're parsing the 4th token (in), it fails for the last line.  It
gets a number where it expects a word.  This *MAY* cause this error.

> ...this happens when I try to run MRTG on a new .cfg which includes
> (primary + secondary for one upstream provider) plus (primary +
> secondary for another upstream provider). The puzzlement is, that the
> two parenthetical aggregates both generate good data separately; it's
> only when I try to combine the two that I get this "cannot cope"
> error.

That is why I assume a (very) large integer causes this.

Modify the MRTG script so that it writes the rateup call to a log file.
This will most likely help you (and others!) to determine the cause.

You could also write your own rateup shell script that gets called by
MRTG, writes its arguments to a log file and calls the original rateup

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list