| 
				
					| 
							
								|  | Wieluń - forum, informacje, ogłoszenia 
 |  |  Komputery / Internet / Linki / Nowe technologie - [Debian] Pakiet do monitoringu sieci (venet)
 
 d@vid - 2012-02-04, 01:40
 Temat postu: [Debian] Pakiet do monitoringu sieci (venet)
 Znacie może jakiś pakiet do monitoringu transferu sieci interfejsu venet? Fajny pakiet jest iptraf ale niestety nie wspiera intrefejsu venet ;/
 
  	  | Kod: |  	  | IPTraf currently supports the following network interface types and names. 
 lo
 
 The loopback interface. Every machine has one, and has an IP address of 127.0.0.1. lo is also indicated if data is detected on the dummyn interface(s).
 ethn
 
 An Ethernet interface. n starts from 0. Therefore, eth0 refers to the first Ethernet interface, eth1 to the second, and so on. Most machines only have one.
 fddin
 
 An FDDI interface. n starts from 0.
 trn
 
 A Token Ring interface, where n starts from 0.
 pppn
 
 A PPP interface. n starts from 0.
 slin
 
 A SLIP interface. n starts from 0.
 ipppn
 
 A synchronous PPP interface using ISDN. n starts from 0.
 isdnn
 
 ISDN interfaces can be given arbitrary names, but for them to work with IPTraf, they must be named isdnn. IPTraf supports synchronous PPP (the ipppn interfaces above), raw IP, and Cisco-HDLC encapsulation.
 plipn
 
 PLIP interfaces. These are point-to-point IP connections using the PC parallel port.
 ipsecn
 
 This refers to Free s/WAN (and possibly other) logical VPN interfaces.
 sbnin
 
 SBNI long-range modem interfaces
 dvbn, sm200, sm300
 
 DVB satellite-receive interfaces
 wlann, wvlann
 
 Wireless LAN interfaces
 hdlcn
 
 Frame Relay base (FRAD) interfaces (non-PVC)
 pvcn
 
 Frame Relay Permanent Virtual Circuit interfaces
 
 Your system's network interfaces must be named according to the schemes specified above.
 | 
 
 Jakaś alternatywa do tego dla venet?
 yampress - 2012-02-04, 10:23
 
 vnstat ?
 d@vid - 2012-02-17, 16:13
 
 yampress, powiedz mi jeszcze jak wyświetlić statystyki live, nie ma tej komendy:
 
  	  | Cytat: |  	  | Wyświetlenie statystyk czasu rzeczywistego: 
 franek@blog.pl:~$ vnstat -i ath0 --live
 | 
 
 
  	  | Kod: |  	  | root@vz896:/home# vnstat -i venet0 --live Unknown arg "--live". Use --help for help.
 
 | 
 kitor - 2012-02-17, 19:47
 
 z man:
 
 
  	  | Cytat: |  	  | -l, --livemode Display current transfer rate for the selected interface in real time until interrupted. Statistics will be shown after interruption if the runtime was more than 10 seconds. An optional mode parameter can be used to select between the displaying of packets per second (mode 0) and transfer counters (mode 1) during execution. --style can also be used to affect the layout of the output.
 | 
 yampress - 2012-02-17, 20:55
 
 Napisz dokładnie co chcesz monitorować. Bo napisałeś ogólnie i ja tylko do zbiorowego trafiku dałem program, który pozwala podawać statystyki pobranych danych dla userów  i/lub  dla  miesięcy / dni. Jest też program , który pozwala monitorować poszczególne procesy. Nethogs sie zwie ... nie wiem czy ten program chodzi pod openVZ
 Bawisz sie linuxem musisz czytac. Tu nie ma kliknij i chodzi.
 d@vid - 2012-02-18, 14:35
 
 Chyba jakąś inną wersję mam...
 
  	  | Kod: |  	  | root@vz896:~# vnstat -l
 Unknown arg "-l". Use --help for help.
 | 
 Jedyny sensowny przełącznik to -tr ale to nie pokazuje obciążenia live tylko w przedziale od 5 sekund do x i zbyt ogólne te dane, bardziej zależałoby mi na pakiecie, który pokaże aktualny ruch na konkretnych portach.
 yampress - 2012-02-18, 14:46
 
 
  	  | Kod: |  	  | yampress@debian:~$ vnstat --help
 vnStat 1.11 by Teemu Toivola <tst at iki dot fi>
 
 -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
 
 See also "--longhelp" for complete options list and "man vnstat".
 
 yampress@debian:~$ vnstat -tr -l
 2 packets sampled in 5 seconds
 Traffic average for eth0
 
 rx         0.00 kbit/s             0 packets/s
 tx         0.00 kbit/s             0 packets/s
 
 Monitoring eth0...    (press CTRL-C to stop)
 
 rx:        0 kbit/s     0 p/s          tx:        0 kbit/s     0 p/s
 ^C
 
 yampress@debian:~$
 
 | 
 
 sopróbuj sobie jeszcze
 vnstat -d
 vnstat -m
 vnstat -h
 
 poza tym
 http://jakilinux.org/admi...-w-malym-palcu/
 http://nmon.sourceforge.net/pmwiki.php
 i
 http://nethogs.sourceforge.net
 I żeby nie było jak zwykle zapraszam na fora:   debian.linux.pl  dug.net.pl  bsdguru.org   ]:->
 d@vid - 2012-02-23, 22:32
 
 No i dalej nic...
 Po pierwsze vnstat nie czyta tego dobrego interfejsu bo to wygląda tak:
 
  	  | Kod: |  	  | lo        Link encap:Local Loopback inet addr:127.0.0.1  Mask:255.0.0.0
 UP LOOPBACK RUNNING  MTU:16436  Metric:1
 RX packets:38857 errors:0 dropped:0 overruns:0 frame:0
 TX packets:38857 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:2331404 (2.2 MiB)  TX bytes:2331404 (2.2 MiB)
 
 venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
 UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
 RX packets:403827529 errors:0 dropped:0 overruns:0 frame:0
 TX packets:1620700646 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:44917016946 (41.8 GiB)  TX bytes:212900253423 (198.2 GiB)
 
 venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
 inet addr:91.228.198.158  P-t-P:91.228.198.158  Bcast:0.0.0.0  Mask:255.255.255.255
 UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
 
 | 
 
 i venet0 czyta ale z venet0:0 nie...:
 
  	  | Kod: |  	  | root@vz896:~# vnstat -i venet0 -tr 5 5410 packets sampled in 5 seconds
 Traffic average for venet0
 
 rx           0.00 kB/s            209 packets/s
 tx           0.00 kB/s            873 packets/s
 
 root@vz896:~# vnstat -i venet0:0 -tr 5
 Requested interface "venet0:0" not found.
 Exiting...
 
 | 
 
 chciałem zainstalować ten pakiet nmon ale nie ma w apt-get ;/:
 
  	  | Kod: |  	  | root@vz896:~# apt-get install nmon Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Couldn't find package nmon
 | 
 
 masakra, żeby nie było programu na linux do monitoringu ruchu live
   
 Jeszcze najsensowniejsze informacje póki co uzyskałem z polecenia:
 
 ale nic informacji o b/s ;/
 yampress - 2012-02-24, 11:23
 
 venet0:0  to alias venet0 . Wynika to zapewne z budowy programu. A skoro tak jest to nic nie zrobisz tu. Trzeba dalej szukać.
 
 nmon jest w squeeze
 
  	  | Kod: |  	  | Pakiet nmon
 squeeze (stable) (utils): performance monitoring tool for Linux
 13g+debian-1: amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc
 
 | 
 http://packages.debian.or...ble§ion=all
 
 A jaka to jest architektura sprzętowa?  Może pod architektura tą która masz tego pakietu nie ma.
 
 Chyba jednak będziesz musiał zapytać mądrzejszych
 http://forum.openvz.org
 
 http://forum.openvz.org/i...th=261&start=0&
 
 Jeśli masz serwer www to może coś pod niego spróbować,  a nie spod konsoli...
 
 
 
  	  | Cytat: |  	  | root@debian:/home/yampress# aptitude show ifstat
 Pakiet: ifstat
 Stan: niezainstalowany
 Wersja: 1.1-8
 Priorytet: opcjonalny
 Sekcja: net
 Opiekun: Goswin von Brederlow <goswin-v-b@web.de>
 Rozmiar rozpakowanego: 86,0 k
 Wymaga: libc6 (>= 2.7-1), libsnmp15 (>= 5.4.1~dfsg)
 Opis: InterFace STATistics Monitoring
 ifstat is a tool to report network interfaces bandwidth just like vmstat/iostat
 do for other system counters. It can monitor local interfaces by polling the
 kernel counters, or remote hosts interfaces using SNMP.
 
 | 
 
 
  	  | Cytat: |  	  | root@debian:/home/yampress# ifstat
 eth0
 KB/s in  KB/s out
 0.00      0.00
 0.00      0.00
 0.00      0.00
 0.11      0.15
 0.19      0.06
 0.00      0.00
 0.00      0.00
 ^C
 root@debian:/home/yampress#
 
 | 
 sprawdz go jeszcze.  man ifstat      &&
 ifstat -i  venet0:0
 
 
 
  	  | Cytat: |  	  | yampress@debian:~/Pulpit$ aptitude search iftop
 i   iftop                           - Wyświetla informacje o wykorzystaniu przep
 p   iftop-dbg                       - displays bandwidth usage information on an
 yampress@debian:~/Pulpit$
 
 | 
 
 
   d@vid - 2012-02-24, 12:43
 
 Serwer appache mam zainstalowany.
 Hmm ifstat wygląda na to że działa ale nie z parametrem -i venet0:0
 
  	  | Kod: |  	  | root@vz896:~# ifstat venet0
 KB/s in  KB/s out
 6.62     17.78
 13.31     37.28
 8.68     24.74
 5.00     13.76
 6.18     16.90
 12.41     48.30
 
 root@vz896:~# ifstat -i venet0
 venet0
 KB/s in  KB/s out
 2.92      7.05
 
 root@vz896:~# ifstat -i venet0:0
 venet0:0
 KB/s in  KB/s out
 n/a       n/a
 n/a       n/a
 n/a       n/a
 n/a       n/a
 n/a       n/a
 
 | 
 
 W każdym razie dzięki po liczbach wygląda na to, że dobre dane odczytuje a w sumie to jest mniej więcej to o co mi chodziło. Najbardziej zadowalałaby mnie w sumie opcja, żebym wiedział który proces ile odbiera/wysyła no ale dobre i to.
 yampress - 2012-02-26, 13:26
 
 jeśli chcesz monitować tylko apache  to jest taka mała aplikacja zwie się apachetop jest w repo
 http://packages.debian.org/squeeze/apachetop
 
 Ewentualnie pod konsole jeszcze takie coś  http://packages.debian.org/squeeze/nload
 
 Trudna sprawa skoro oni nawet na forum openvz nie za bardzo wiedzą. Wydaje mi się, że komputer hostujący  maszyny vz  potrafi monitorować każdy z aliasów czyli hosty które hostuje... A wewnątrz to zabronione. Albo standardowe programy do monitoringu nie wiedzą gdzie szukać tych informacji..
 Jak coś ważnego tam masz pomyśl ewentualnie  o serwerku dedykowanym, a odejdź od vps.
 Tak wiem w cenach to różnica jest.
 
 |  |