Usage Stats bug in Freebsd?

jmstacey

Verified User
Joined
Feb 12, 2004
Messages
4,106
Location
Colorado
The usage stats for device whatever on the server stats page in the admin account shows -0 whenever it goes over a certain ammount, and usually right after a DoS attack when the usage spikes. It also continued after a full reinstallation that I had to do some time back.

Its not a major concern or problem just wanted to know if any others have experienced this with freebsd 4.9 or red hat, and if this is a control panel bug or a os bug. And I don't think DoS attacks would mess it up since it is only major bw usage and it doesn't need to access the server from the outside...
 
What stats are you referring to? The total counted bandwidth that DA counts, or the total that is returned by the ethernet device? If it's the device, then try running:
Code:
/usr/bin/netstat -f inet -b -I [b]ethernet_device[/b]
To see if that is where the -0 is coming from.

John
 
Alright, it happened again. In directadmin is shows up as -0 for total ammount transmitted so I ran that command and it output this:

Name: rs
Mtu: 0bytes
Network: Coll
And nothing for the rest

So I restarted and ran that command and it came up with the same output, but of course DA is counting correctly again for half a day or so... :confused:
 
Hello,

So.. to clarify, is DA incorrectly parsing the output, or is the output not including the bandwidth stats?

John
 
I'm not sure yet. What is the command that DA uses to get the stats so I can see what the OS reports as your previous command didn't turn anything up whether or not it was working

I attached a screen shot.
 

Attachments

  • stats.jpg
    stats.jpg
    5.1 KB · Views: 293
Alright looks like a DA problem. Running that command it shows all the information so I don't think its a OS problem anymore.

Here is what that command displays even when their is a -0 in that DA column.


Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll
fxp0 1500 65.254.44.168 ls802 23786778 - 2139254548 22974828 - 1476332425 -
fxp0 1500 65.254.44.171 65.254.44.171 18853 - 1389329 24 - 1514 -
fxp0 1500 65.254.44.172 65.254.44.172 1 - 60 0 - 0 -
fxp0 1500 65.254.44.173 65.254.44.173 2 - 103 0 - 0 -
fxp0 1500 65.254.44.174 65.254.44.174 55 - 4667 0 - 0 -

The Ibytes and Obytes are constantly increasing as data is transfered like it should be so its not a Operating System error as far as I can tell..
 
Hello,

Thanks for the info. Problem solved, was just a simple parsing fix for the case where there is only 1 space between items.

John
 
Back
Top