توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نمایش پهنای باند مصرفی سرور بصورت روزانه
P-CO
November 12th, 2009, 23:32
با سلام، شما با نصب VNSTAT میتونین میزان پهنای باند مصرفی سرورتون رو چک بکنین.
آموزش نصب :
1) be root
2) (change directory to /usr/src or whatever you want) root@host [~]# cd /usr/src
3) (download the file using wget) root@host [~]# wget http://humdi.net/vnstat/vnstat-1.4.tar.gz
4) (untar the compressed package) root@host [~]# tar zxvf vnstat-1.4.tar.gz
5) (change directory to Vnstat) root@host [~]# cd vnstat-1.4
6) (compile using gcc) root@host [~]# make && make install
7) (run vnstat for the first time) root@host [~/vnstat-1.4]# vnstat
8) Vnstat will prompt you to make a new database for the interface you wish to monitor. In my case, I want to monitor venet0 so I type: root@host [~/vnstat-1.4]# vnstat -u -i venet0
9) you should see the following: Error: Unable to read database "/var/lib/vnstat/venet0". New database generated.
10) You're ready to run vnstat. root@host [~]# vnstat
$ vnstat -h
eth1 21:25
^ r
| r
| r r
| r r r
| t r r r t
| rt r r r r t t
| rt r r r r t t
| rt r r t r r r t t
| rt r rt t r r r rt rt t rt rt t
| rt rt rt rt rt r rt r r r r r rt rt rt rt rt rt rt t
-+--------------------------------------------------------------------------->
| 22 23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21
$ vnstat -l
Monitoring eth1... (press CTRL-C to stop)
rx: 63.06 KiB/s 365 p/s tx: 112.84 KiB/s 436 p/s
eth1 / traffic statistics
rx | tx
--------------------------------------+----------------------------------------
bytes 3.83 MiB | 5.63 MiB
--------------------------------------+----------------------------------------
max 206.55 KiB/s | 273.35 KiB/s
average 63.21 KiB/s | 93.01 KiB/s
min 36.86 KiB/s | 24.02 KiB/s
--------------------------------------+----------------------------------------
packets 17251 | 20214
--------------------------------------+----------------------------------------
max 376 p/s | 473 p/s
average 278 p/s | 326 p/s
min 183 p/s | 215 p/s
--------------------------------------+----------------------------------------
time 1.03 minutes
موفق باشید.
takweb.ir
November 13th, 2009, 00:38
با این میتونید VPS های VMware که میدید ببینید چقدر میکشه
چه طوری؟
1eng.ir
November 13th, 2009, 00:40
کاربردی و عالی بود.
بسی شادمان گشتیم :)
1eng.ir
November 13th, 2009, 00:50
واسه وی پی اس ویندوز فکر نکنم بشه.
اینم Helpش:
-q, --query query database
-h, --hours show hours
-d, --days show days
-m, --months show months
-w, --weeks show weeks
-t, --top10 show top10
-s, --short use short output
-u, --update update database
-i, --iface select interface (default: eth0)
-?, --help short help
-v, --version show version
-tr, --traffic calculate traffic
-ru, --rateunit swap configured rate unit
-l, --live show transfer rate in real time
iranihost
November 13th, 2009, 01:15
چه طوری؟
فکر کنم وحید سوالی پرسید !
درسته وحید ؟
FireMan
November 30th, 2009, 10:46
سلام
دوست عزیز چطوری میشه این vnstat رو از روی سرور پاک کرد ؟
Arashdn
November 30th, 2009, 15:07
میشه با این برنامه دید هر ایپی چقدر مصرف داشته؟
Vahid
November 30th, 2009, 15:07
اره
لازمه هر ایپی رو تو یه اینتر فیس بزاری
Arashdn
November 30th, 2009, 16:06
دقیقا چطوری؟
Vahid
November 30th, 2009, 16:09
ببین تو توی eth0 مثلا یه دونه ایگی ادد میکنی
حالا برو یه eth0:1 بساز و ایپی رو بدده توش این شکلی مانیتور میکنه
Arashdn
November 30th, 2009, 16:17
من با وی ام ور کار میکنم
که این کار رو نمیشه کرد
Roka
December 2nd, 2009, 14:13
سلام
دوست عزیز چطوری میشه این vnstat رو از روی سرور پاک کرد ؟