View Full Version : Usage Stats bug in Freebsd?
jmstacey
03-28-2004, 07:11 PM
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...
DirectAdmin Support
03-29-2004, 11:57 AM
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:
/usr/bin/netstat -f inet -b -I ethernet_device
To see if that is where the -0 is coming from.
John
jmstacey
03-29-2004, 01:53 PM
Will do next time it happens
jmstacey
03-29-2004, 05:18 PM
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:
DirectAdmin Support
03-30-2004, 10:34 AM
Hello,
So.. to clarify, is DA incorrectly parsing the output, or is the output not including the bandwidth stats?
John
jmstacey
04-01-2004, 10:06 PM
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.
DirectAdmin Support
04-02-2004, 12:00 PM
/usr/bin/netstat -f inet -b -I ethernet_deviceJohn
jmstacey
04-02-2004, 02:28 PM
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..
DirectAdmin Support
04-03-2004, 03:06 PM
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
jmstacey
04-04-2004, 03:38 PM
Great, it will be in the next release then?
DirectAdmin Support
04-05-2004, 11:39 AM
you bet :)
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.