Project

General

Profile

Actions

Bug #909

closed

server-status traffic counter overflow

Added by spillgroup about 18 years ago. Updated over 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_status
Target version:
ASK QUESTIONS IN Forums:

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/
</pre>
Actions #1

Updated by jan over 17 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r1941

Actions

Also available in: Atom