Ticket #909 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

server-status traffic counter overflow

Reported by: spillgroup Assigned to: jan
Priority: normal Milestone: 1.4.17
Component: mod_status Version: 1.4.13
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 0

Description

We use the output from the '/server-status?auto' URL in a few scripts. However at some point the 'Total Accesses' (or 'Requests' in the non-auto report) will overflow and be stuck at -0 instead of wrapping to 0. This breaks some applications (in particular rrdtool) as -0 is not a valid number.

I have reported something similar before (in 2004), but the bug seem to have returned in a different place. See below for my previous bugreport.

On Wed, Dec 01, 2004 at 11:31:28AM +0100, Matthijs van der Klip wrote:
> Hi,
> 
> This might be intentionally but one of my lighttpd servers outputs 
> some strange stats after a while:
> 
>  <head>
>   <title>Status</title>
>  </head>
>  <body>
> <pre><b>absolute</b> (since start)
>  <b>Requests</b>: 53663850 req
>  <b>Traffic</b> : -0 kbytes
> <b>average</b> (5s sliding average)
>  <b>Requests</b>: 87 req/s
>  <b>Traffic</b> : 1107 kb/s
> 
> 
> The traffic is reported as being minus zero kilobytes, which is a 
> value not appreciated by RRDtool (ERROR: not a simple integer: '-0').
> 
> As said this might be intentional to flag an overflow condition (it 
> happens only after several weeks of continued running), but I think 
> the value of -0 is not very fortunately chosen in my opinion. A value 
> of -1 (for example) would be accepted by more (I admit somewhat 
> braindead) applications.

The counters itself of doubles, the display is limited to 2Tb currently. 

I'll add a better scaling in 1.3.7. 

... mod_status is fixed now, ... mod_rrdtool is next
 
> Matthijs van der Klip

    Jan
  
-- 
Jan Kneschke                                     http://jan.kneschke.de/
Perhaps you want to say 'thank you, jan':    http://jk.123.org/wishlist/

Attachments

Change History

08/17/2007 11:35:36 PM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.
  • blocking changed.
  • pending changed.
  • milestone set to 1.4.17.

fixed in [1941]


Add/Change #909 (server-status traffic counter overflow)




Change Properties
Action