Re: [torrus-users] Reports
Brought to you by:
ssinyagin
From: Stanislav S. <ssi...@ya...> - 2010-09-27 19:46:49
|
that's a mod_perl version 1.0 handler -- are you sure you're using the old Apache? see for details: http://torrus.org/webintf.pod.html as far as I know, most OS'es already switched to Apache 2.x > >From: Ken Wilkinson <kwi...@ca...> >To: Stanislav Sinyagin <ssi...@ya...>; tor...@li... >Sent: Mon, September 27, 2010 7:54:36 PM >Subject: RE: [torrus-users] Reports > > >Stan, > >I tried the new development version 1.0.9d, but I keep getting the following >error when I try to restart apache. Any ideas? > >Bareword "Apache::Constants::OK" not allowed while "strict subs" in use at >/usr/testtorrus/home/perllib/Torrus/ApacheHandler.pm line 36.\nCompilation >failed in require at /usr/testtorrus/home/conf_defaults/webmux.pl line >25.\nBEGIN failed--compilation aborted at >/usr/testtorrus/home/conf_defaults/webmux.pl line 25.\nCompilation failed in >require at (eval 6) line 1.\n > >Ken > >From:Stanislav Sinyagin [mailto:ssi...@ya...] >Sent: Saturday, September 25, 2010 5:49 AM >To: Ken Wilkinson; tor...@li... >Subject: Re: [torrus-users] Reports > >Ken, I fixed a bug in External storage driver: it was ignoring the agent >rebooting event. >Please test the new development snapshot. > >also it checks the "ext-counter-max" parameter, and ignores the counter value if >it's above that limit. >The limit is in bytes per second. > >regards, >stan > >>From:Ken Wilkinson <kwi...@ca...> >>To: Stanislav Sinyagin <ssi...@ya...> >>Sent: Sat, September 25, 2010 2:25:27 AM >>Subject: Re: [torrus-users] Reports >> >>I tested it. It is when the modem is power cycled or in some older modem when >>the modem loses sync it will initiate a system restart. The >>ifInOctets/ifOutOctets counters reset back to zero and start incrementing from >>zero. When this happens between polls then the x1 - x0 is a negative number. >> Most applications assume a counter wrap has occured and calculate accordingly >>creating a hugh number or a giant spike in the rrd graphs. I have seen this >>issue before. I usually detect this by calculating the maximum bytes that can >>be transferred during 5 minute interval, looking to see if the value is greater >>than this. If it is, then I know that value is in error and discard it or >>estimate the traffic usage usually a different calculation. >> >>With the rates already being calculated and stored in the torrus database I can >>only discard the data point in error. If I have access to the raw Bytes data at >>each interval I can detect the error condition and perform a close approximation >>of the data transferred after the unit was reset. >> >>Ken Wilkinson >> >>On Sep 24, 2010, at 8:02 PM, Stanislav Sinyagin wrote: >> >> >> >>what if it's two modems answering on the same IP address? >> >> >> >>>From: Ken Wilkinson <kwi...@ca...> >>>To: tor...@li... >>>Sent: Fri, September 24, 2010 9:53:58 PM >>>Subject: [torrus-users] Reports >>>I believe you are storing Bytes/second in the value field of the srvexport >>>table. In order to do this you would need the previous ifInOctets/IfOutOctets >>>value and current ifInOctets/IfOutOctets value, then subtract the two and divide >>>by the poll interval. Are the IfInOctets/IfOutOctets stored somewhere? >>> >>>I am seeing impossible values in my usage reports when cable modems are >>>rebooted. My guess is that the program is assuming a 32-bit counter wrap has >>>occurred when a negative value is calculated for the rate. I would like to >>>write my own usage report generator and account for the possibility of the >>>counter being reset due to a power cycling of the device. I would need the raw >>>Octets counter data in order to do this, so that is why I am wondering if this >>>is stored somewhere. >>> >>>Kenneth S. Wilkinson >>>CAS Cable >>>1525 Dupont Road, Parkersburg, WV 26101 >>>ph: 304-420-2470 >>>fax: 304-420-2474 >>> >> |