I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Is there something I need to do differently on the console to run it?
Thanks..
On 01/02/06, WipeOut wipe_out@users.sourceforge.net wrote:
I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Is there something I need to do differently on the console to run it?
It's probably a terminal type thing. I've noticed in Putty instead of getting vertical and horizontal "bars" in the curses interface I get xxxxxx and qqqqqqq with l-m-k-j in the corners.
Running from the console actually displays properly for me.
There are a bunch of various rendering options within Putty to deal with this I think.
Try each of the following from your terminal/console...
export TERM=vt100; iptraf export TERM=linux; iptraf export TERM=xterm; iptraf
You can also increase your console resolution (with care).
Getting a Hi-Res Console
640x480 800x600 1024x768 1280x1024 256 0x301 0x303 0x305 0x307 32k 0x310 0x313 0x316 0x319 64k 0x311 0x314 0x317 0x31A 16M 0x312 0x315 0x318 0x31B
640x480 800x600 1024x768 1280x1024 256 769 771 773 775 32k 784 787 790 793 64k 785 788 791 794 16M 786 789 792 795
Edit your grub or lilo config and add vga=NNN where NNN is either the hex or decimal equivalent to your desired resolution from the tables above.
title White Box Enterprise Linux hi-res (2.6.9-5.0.5.EL) root (hd0,0) kernel /vmlinuz-2.6.9-5.0.5.EL ro root=/dev/Vg00/Lv00 vga=773 initrd /initrd-2.6.9-5.0.5.EL.img
Will.
Hi Will,
Will McDonald wrote:
On 01/02/06, WipeOut wipe_out@users.sourceforge.net wrote:
I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Is there something I need to do differently on the console to run it?
It's probably a terminal type thing. I've noticed in Putty instead of getting vertical and horizontal "bars" in the curses interface I get xxxxxx and qqqqqqq with l-m-k-j in the corners.
Running from the console actually displays properly for me.
There are a bunch of various rendering options within Putty to deal with this I think.
Try each of the following from your terminal/console...
export TERM=vt100; iptraf export TERM=linux; iptraf export TERM=xterm; iptraf
Tried all three, no change, still comes out a bit strange..
You can also increase your console resolution (with care).
Getting a Hi-Res Console
640x480 800x600 1024x768 1280x1024 256 0x301 0x303 0x305 0x307 32k 0x310 0x313 0x316 0x319 64k 0x311 0x314 0x317 0x31A 16M 0x312 0x315 0x318 0x31B
640x480 800x600 1024x768 1280x1024 256 769 771 773 775 32k 784 787 790 793 64k 785 788 791 794 16M 786 789 792 795
Edit your grub or lilo config and add vga=NNN where NNN is either the hex or decimal equivalent to your desired resolution from the tables above.
title White Box Enterprise Linux hi-res (2.6.9-5.0.5.EL) root (hd0,0) kernel /vmlinuz-2.6.9-5.0.5.EL ro root=/dev/Vg00/Lv00 vga=773 initrd /initrd-2.6.9-5.0.5.EL.img
Changing the resolution on the console also didn't make any difference but is handy to know.. :)
Would it make any difference that the IPtraf that was installed came from DAG's yum repo and not the CentOS repo?
Thanks.
On 01/02/06, WipeOut wipe_out@users.sourceforge.net wrote:
Would it make any difference that the IPtraf that was installed came from DAG's yum repo and not the CentOS repo?
Shouldn't have thought so. I'm fairly certain the IPTraf I've tried on various boxes is from Dag/RPMForge.
What TERM does the system default to? Usually logging in on the console would use "linux".
$ echo $TERM
What is the actual problem? Can you give a more detailed description of how it displays properly and what's wrong when it doesn't?
Even when the line drawing characters are all qqqqq and xxxxx when I run it it's still usable.
Will.
Will McDonald wrote:
On 01/02/06, WipeOut wipe_out@users.sourceforge.net wrote:
Would it make any difference that the IPtraf that was installed came from DAG's yum repo and not the CentOS repo?
Shouldn't have thought so. I'm fairly certain the IPTraf I've tried on various boxes is from Dag/RPMForge.
What TERM does the system default to? Usually logging in on the console would use "linux".
$ echo $TERM
What is the actual problem? Can you give a more detailed description of how it displays properly and what's wrong when it doesn't?
Even when the line drawing characters are all qqqqq and xxxxx when I run it it's still usable.
Will. _______________________________________________
There are no line drawing characters showing up at all and and an example if I am on the "statistical breakdown" option the top of the screen where it defines the columns (Proto/Port Pkts Bytes etc..) do not line up with the results in the lines below..
Also on the "statistical breakdown" page in the middle there is a "t", a "u" and a "." character just randomly hanging around in the middle of the screen..
I checked the $TERM as you suggested and it is set to "linux"..
It is certainly a strange one that I haven't seen before..
Thanks..
On Wednesday 01 February 2006 11:56, WipeOut wrote:
I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Is there something I need to do differently on the console to run it?
try:
[user@host ~/]$ export LANG=C [user@host ~/]$ iptraf
/Peter
Thanks..
I beleive it is a UTF issue, try setting that in /etc/sysconfig/i18n to LANG="en_US"
On Wed, 2006-02-01 at 04:56, WipeOut wrote:
I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Ntop (http://www.ntop.org) is really good at summarizing traffic in various ways and can be viewed from a web interface.
On 01/02/06, WipeOut wipe_out@users.sourceforge.net wrote:
I have a CentOS 4 server at home where we store all our data, I wanted to get some idea of the amount of traffic going into and out of the server by protocol so I installed IPtraf..
When I run it from an ssh session it looks fine but when I run it directly on the server console its doesn't look right at all.. It doesn't seem to layout correctly..
Is there something I need to do differently on the console to run it?
I've just checked and I get the same behaviour you do on a local console on a CentOS4 system.
Weirdly...
# export TERM=screen; iptraf
... doesn't render line drawing characters properly. Whereas....
# screen iptraf
... does.
Will.
Will McDonald wrote:
I've just checked and I get the same behaviour you do on a local console on a CentOS4 system.
Weirdly...
# export TERM=screen; iptraf
... doesn't render line drawing characters properly. Whereas....
# screen iptraf
... does.
Will.
Well I am glad its not just me.. :)
Strange thing is that if I use..
# screen iptraf
it does the exact same thing..