Re: simple network traffic query tool
On Mon, 28 Apr 2008 18:00:46 + beni [EMAIL PROTECTED] wrote: On Thursday 24 April 2008 18:10:40 Tobias Kirschstein wrote: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic Peak Total lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. I'm using a modified version of Superkarambas CompactMonitor. It is written for Linux I think, but easily adaptable for freebsd. All I did was moddify the ~/.kde/share/apps/superkaramba/themes/CompactMonitor/CompactMonitor.theme file : text x=435 y=50 sensor=network device=vr0 format=%in KB/s decimals=1 text x=370 y=50 value=Download text x=570 y=50 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $7}' align=right interval=1000 text x=435 y=65 sensor=network device=vr0 format=%out KB/s decimals=1 text x=370 y=65 value=Upload text x=570 y=65 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $10}' align=right interval=1000 Add graph x=370 y=30 sensor=network device=vr0 format=%out w=200 h=15 color=255,127,127 interval=1000 max=100 graph x=370 y=30 sensor=network device=vr0 format=%in w=200 h=15 color=127,230,180 interval=1000 max=100 if you want to add a graphic representation and change the vr0 according to your (ethernet) device. It works for me with kde 3.5.8 on 7.0-stable. thanks a lot! i missed the device=vr0 part in my config... sometimes it can be so simple ;) -- ciao, lev ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
On Thursday 24 April 2008 18:10:40 Tobias Kirschstein wrote: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic PeakTotal lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. I'm using a modified version of Superkarambas CompactMonitor. It is written for Linux I think, but easily adaptable for freebsd. All I did was moddify the ~/.kde/share/apps/superkaramba/themes/CompactMonitor/CompactMonitor.theme file : text x=435 y=50 sensor=network device=vr0 format=%in KB/s decimals=1 text x=370 y=50 value=Download text x=570 y=50 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $7}' align=right interval=1000 text x=435 y=65 sensor=network device=vr0 format=%out KB/s decimals=1 text x=370 y=65 value=Upload text x=570 y=65 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $10}' align=right interval=1000 Add graph x=370 y=30 sensor=network device=vr0 format=%out w=200 h=15 color=255,127,127 interval=1000 max=100 graph x=370 y=30 sensor=network device=vr0 format=%in w=200 h=15 color=127,230,180 interval=1000 max=100 if you want to add a graphic representation and change the vr0 according to your (ethernet) device. It works for me with kde 3.5.8 on 7.0-stable. -- Beni. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
Take a look at ipa. -Grant - Original Message - From: beni [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Cc: Tobias Kirschstein [EMAIL PROTECTED] Sent: Monday, April 28, 2008 2:00 PM Subject: Re: simple network traffic query tool On Thursday 24 April 2008 18:10:40 Tobias Kirschstein wrote: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic PeakTotal lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. I'm using a modified version of Superkarambas CompactMonitor. It is written for Linux I think, but easily adaptable for freebsd. All I did was moddify the ~/.kde/share/apps/superkaramba/themes/CompactMonitor/CompactMonitor.theme file : text x=435 y=50 sensor=network device=vr0 format=%in KB/s decimals=1 text x=370 y=50 value=Download text x=570 y=50 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $7}' align=right interval=1000 text x=435 y=65 sensor=network device=vr0 format=%out KB/s decimals=1 text x=370 y=65 value=Upload text x=570 y=65 sensor=program program=netstat -ibh | grep Link#1 | awk '{print $10}' align=right interval=1000 Add graph x=370 y=30 sensor=network device=vr0 format=%out w=200 h=15 color=255,127,127 interval=1000 max=100 graph x=370 y=30 sensor=network device=vr0 format=%in w=200 h=15 color=127,230,180 interval=1000 max=100 if you want to add a graphic representation and change the vr0 according to your (ethernet) device. It works for me with kde 3.5.8 on 7.0-stable. -- Beni. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
On Sat, 26 Apr 2008 12:08:14 +0200 Zbigniew Szalbot [EMAIL PROTECTED] wrote: I hope I am not stealing the thread by asking an additional question. Thanks to this thread I discovered :) systat -ifstat and other switches. Does such data like below survive reboots? re0 in 8.062 KB/s 13.414 KB/s1.987 GB out21.561 KB/s 53.346 KB/s3.043 GB i don't think so.. and they *may* even wrap around on a server with a long uptime and lots of traffic... B _ {Beto|Norberto|Numard} Meijome Software QA is like cleaning my cat's litter box: Sift out the big chunks. Stir in the rest. Hope it doesn't stink. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
Hi, Norberto Meijome pisze: On Sat, 26 Apr 2008 12:08:14 +0200 Zbigniew Szalbot [EMAIL PROTECTED] wrote: I hope I am not stealing the thread by asking an additional question. Thanks to this thread I discovered :) systat -ifstat and other switches. Does such data like below survive reboots? re0 in 8.062 KB/s 13.414 KB/s1.987 GB out21.561 KB/s 53.346 KB/s3.043 GB i don't think so.. and they *may* even wrap around on a server with a long uptime and lots of traffic... Due to an unexpected power off, I have it confirmed... ;) Thanks Norberto! -- Zbigniew Szalbot www.lc-words.com smime.p7s Description: S/MIME Cryptographic Signature
Re: simple network traffic query tool
On Fri, 25 Apr 2008 22:20:35 +0200 Roger Olofsson [EMAIL PROTECTED] wrote: Tobias Kirschstein skrev: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic Peak Total lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. Hello, If you want something more of a web service you could install SNMP from ports and use Cacti (also from ports). See http://www.cacti.net/ for a quick glance at what you'll get. thanks to all for your suggestions. i looked into the tools but unfortunately none was simple enough so that its output could be easily parsed and used as a superkaramba sensor. finally i came across ifstat (also from ports) which seems to be what i was looking for, but nevertheless thanks for your help :) -- ciao, lev pgp3BLJreowJV.pgp Description: PGP signature
Re: simple network traffic query tool
Hello, Tobias Kirschstein pisze: On Fri, 25 Apr 2008 22:20:35 +0200 Roger Olofsson [EMAIL PROTECTED] wrote: Tobias Kirschstein skrev: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic Peak Total lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. Hello, If you want something more of a web service you could install SNMP from ports and use Cacti (also from ports). See http://www.cacti.net/ for a quick glance at what you'll get. thanks to all for your suggestions. i looked into the tools but unfortunately none was simple enough so that its output could be easily parsed and used as a superkaramba sensor. finally i came across ifstat (also from ports) which seems to be what i was looking for, but nevertheless thanks for your help :) I hope I am not stealing the thread by asking an additional question. Thanks to this thread I discovered :) systat -ifstat and other switches. Does such data like below survive reboots? re0 in 8.062 KB/s 13.414 KB/s1.987 GB out21.561 KB/s 53.346 KB/s3.043 GB Thanks! -- Zbigniew Szalbot www.lc-words.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
Tobias Kirschstein skrev: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic PeakTotal lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. Hello, If you want something more of a web service you could install SNMP from ports and use Cacti (also from ports). See http://www.cacti.net/ for a quick glance at what you'll get. Just my nickels worth. /Roger ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
simple network traffic query tool
hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic PeakTotal lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. -- ciao, lev pgpn8EMOVQZeM.pgp Description: PGP signature
Re: simple network traffic query tool
Hi, Perhaps try 'bmon'. It doesn't support displaying peak values though, but simple enough. -- AngryWolf [EMAIL PROTECTED] On Thursday 24 April 2008 20.10.40 Tobias Kirschstein wrote: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
2008/4/24 AngryWolf [EMAIL PROTECTED]: Hi, Perhaps try 'bmon'. It doesn't support displaying peak values though, but simple enough. -- AngryWolf [EMAIL PROTECTED] On Thursday 24 April 2008 20.10.40 Tobias Kirschstein wrote: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. nload should do the job ... Cheers, Norman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple network traffic query tool
--On Thursday, April 24, 2008 20:10:40 +0200 Tobias Kirschstein [EMAIL PROTECTED] wrote: hi, i'm looking for a small tool to query the current network traffic (kb IN and OUT) per interface. is there any sysctl or tool which gives me a similar output to systat -ifstat: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average Interface Traffic PeakTotal lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB out 0.000 KB/s 0.000 KB/s 226.079 KB wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB out 0.000 KB/s 0.000 KB/s6.205 MB the background: unfortunately the network monitor build into superkaramba does not work for freebsd, os i want to write a widget which uses sysctl or any other tool if available got get this information. systat is not appropriate to be used because it does not terminate on its own as i see. Perhaps net/ntop? -- Paul Schmehl ([EMAIL PROTECTED]) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]