Koozali.org: home of the SME Server

Phpsysinfo

Howard

Phpsysinfo
« on: October 07, 2003, 04:24:42 PM »
Hi,

I am trying to find a way to reset the NIC stats on PHPSysInfo so that I can monitor how much has been downloaded / uploaded on a daily basis..

Does anyone know if/how this can be done or if there is another utility that can be used for this..? - I have searched on the forums and can't find the answer.

Thanks
Howard

Byte

Re: Phpsysinfo
« Reply #1 on: October 07, 2003, 05:07:36 PM »
yes just either reboot the machine or type at command

ifdown eth0

to take it down then

ifup eth0

to bring it back up

eth0 being your nic to find that out type ifconfig

Byte

Howard

Re: Phpsysinfo
« Reply #2 on: October 07, 2003, 09:19:41 PM »
I've tried this and the stats stay the same.. Any other ideas?

Thanks
Howard

Joe

Re: Phpsysinfo
« Reply #3 on: October 07, 2003, 09:34:52 PM »
Really??? thats strange as it doesnt do that on mine sets back to 0 after doing ifdown or rebooting as effectively the eth0 tx and rx are back to 0

Byte

Re: Phpsysinfo
« Reply #4 on: October 07, 2003, 09:36:21 PM »
I dont no what could be done then as that works for mine

Sorry

Byte

Howard

Re: Phpsysinfo
« Reply #5 on: October 07, 2003, 10:07:19 PM »
Hmmm, I've not tried rebooting yet as this is something I want to avoid..

Howard

Re: Phpsysinfo
« Reply #6 on: October 07, 2003, 10:35:35 PM »
One thing I have found is IBmonitor.. which looks like it does what I need but I can;t seem to get it working. When I run the perl script i justget command not found.

Cade Robinson

Re: Phpsysinfo
« Reply #7 on: October 09, 2003, 08:05:43 AM »
Sorry, just have to make sure, "Are you in the directory where the ibmonitor script is?"

Howard

Re: Phpsysinfo
« Reply #8 on: October 09, 2003, 12:09:57 PM »
Hi,

Yes... I downloaded and unarchived the program and while in that directory - ran the script.. Do I need just to type the name of the script or do I need to preceed it with something..?

Thanks

Howard

Re: Phpsysinfo
« Reply #9 on: October 09, 2003, 12:43:24 PM »
Maybe I was being daft... It works if I type "perl ibmonitor"..

Does anyone know why I would be getting a lot of traffic on my external nic..? Web page is not being hit.. Other than that, I am only running the mail server.?

Thanks
Howard

Cade Robinson

Re: Phpsysinfo
« Reply #10 on: October 11, 2003, 10:35:22 PM »
chmod a+x the ibmonitor and drop it in /usr/bin
Then run it from anywhere with "ibmonitor"

as for you external activity, how much are we activity are we talking about.  Could you post some stats?