Jun 10

ShowCase: MTR - MyTraceRoute Tool

Most of us while troubleshooting network failures use the well known traceroute which shows the path between to network points and latency in each ‘hop’ in this path. Its really helpful in order to see where packets are dropped.

Mytraceroute introduces a dynanic way of seeing the path information and allowing us a quick shot on the network problem. When using traceroute it was little hard to find which part of the network was loosing some packets packets, and not all of them; with mytraceroute you can see packet loosing as a percentage in the reporting interface.

$ mtr google.es to start it. Now MTR will start looping making a traceroute to the host choosen. What we will see is the path of the packets to destination and 2 main columns, Packets and Pings. In Packets columns you will see the % of Loss and where it happens, there you will find a faulty router ;). The Pings column gives us all the information related to time.

Time for fun. Try mtr to different servers that may be in different locations, in my ISP (Ono) I have spotted a couple of routers that are loosing packets, which impacts in the overall connection performance.

Have Fun!

Jun 8

Escriu o mor

Doncs si avui he rebut amenaces d’un lector perquè actualizi el blog. Els lectors fidels necessiten els meus magnífics posts per poder llegir alguna cosa de qualitat.

En el món dels blog, o actualitzes o mors, hem sembla que es una màxima massa encertada i tot.

Prometo que en breu escriure algún ‘caltre’ review sobre algunes eines que he utilitzat últimament.

Apr 24

Diada de St. Jordi amb petunies

Bé la veritat és que no tinc clar si eren petunies pero es clar que CiU no regalava pas roses i no entenc ben bé per que.

No sé com va anar a altres indrets de la geografia catalana, però a Igualada hem va cridar l’atenció la manera en com CiU, sent tan de la terra, catalanista i demés era capaç de trencar amb una tradició tan nostra com la de regalar roses i cambiar-ho per una torreta petita amb 4 flors…

Si els critico per això, i sí, si haguessin regalat roses hagués fet la conyeta xD Hem fan bastanta gràcia… un altre dia a regalar llibres i fora punyetes.

Espero que llegiu els llibres de gust i oloreu la poca olor que fan les roses, res com tallar les que surten al balcó!

Apr 23

VMWare and Ubuntu Feisty Fawn incompatibilites

Last week I upgraded my work computer to the new Feisty. Of course such an upgrade installed a new kernel and it wasn’t supported by vmware…

Today I’ve got time and I found this page (VMWare and Ubuntu Feisty) a comenteer says to apply a patch to vmware, I did it and the modules compiled well.

Just to let you know ;)

Apr 20

Having fun with CSSH

I’ve just dicovered CSSH. This little ugly tool can be found in ubuntu, and I presume it would be found on all others.

CSSH stans for Central SSH and its meant for cluster administration. In an environment where you have quite a few servers with almost exactly the same configuration you can type any command in the main window and its typed to every host at the same time.

I’ll have to try at work, cause there I have this type of environment. At home… with two connections to the same server  its not very exciting.

Try it and give your opinion!

Apr 16

Xerrada exclusiva de Zeev Suraski a Concatel

Zeev Suraski, el creador de la versió moderna de PHP (>3),  ha vingut a Concatel per fer-nos una xerrada sobre PHP i com està avançant tot el tema.

Des del punt de vista d’un programador PHP amateur la xerrada ha sigut prou interessant. Després de vendre una mica la moto sobre el PHP i que cada vegada s’està posant més i més de moda entre les empreses ha arribat el que per mi ha estat el plat fort.  QEDWiki.

QEDWiki es un projecte dels gurus que es rasquen els ous a IBM, aquells que els paguen per jugar amb noves tecnologies (la bona vida) total aquesta gent ha creat un IDE rollu Visual (Basic, C,… ) .Net pero a través de web. Una wiki d’aplicacions web. La canya! Amb 10 minuts el tiu ha fet una aplicació amb una llista d’adreces i un widget de google maps on podies arrastrar les adreces i te les mostrava al mapa, no ha picat ni una linia de codi! Realment interessant per fer aquelles webs xorres que de vegades sempre s’han de fer.

A part d’això sembla que ara tot el tema de ruby, python i companyia es una moda passatgera. Pel que comenta estan integrant llibreries AJAX dins de php i sembla que no hi ha ganes de que n’acabi l’hegemonia.

Llarga vida al PHP!

Apr 10

1r Aniversari!

A 10 minuts per al final del dia, el post de celebració del primer any d’aquest blog!

Ara toca començar a farcir-lo  com cal i a veure si agrada a la gent que pastura per aquests móns.

Salut! I per molts més que en puguem celebrar (Si, ho diu la meva iaia xD)

Apr 1

DLink G604T Penjat

Fa un temps veia com el D-Link que tinc a casa per l’ADSL es penjava. El problema era en que el router no era capaç d’aguantar masses connexions a la vegada i es penjava.

Aquest router porta un linux, basat en MontaVista, en podeu veure tota la info aquí.

En aquest router s’ajunten alguns problemets de la config del kernel. Per una banda una taula NAT relativament petita i un timeout per netejar-la extremadament gran, total que la taula s’omple i peta.

He trobat uns valors força coherents a adslzone així que els aplicaré. Havia provat de canviar tan sols la mida de la taula NAT però es va acabar penjant.

L’scriptillu serà el següent:

echo 2048 > /proc/sys/net/ipv4/netfilter/ip_conntrack_max
echo 50 > /proc/sys/net/ipv4/netfilter/ip_conntrack_generic_timeout
echo 5 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close
echo 120 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close_wait
echo 1200 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
echo 120 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_fin_wait
echo 60 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_time_wait
echo 10 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout

A veure com reacciona tot plegat.

Mar 25

System Load exagerat

Fins ara a la feina ja m’havia acostumat a veure systems loads del voltant de 30-40 o més, sense massa temps per mirar que passava i total la màquina seguia anant, a patades, però funcionant.

Avui m’he sorprès. Al intentar accedir al servidor he vist que estava caigut… bastant estrany, potser duia un parell de dies així. He aconseguit fer un ssh i això és el que n’ha sortit:

markus@myth:~$ top
top - 13:58:07 up 8 days, 1:02, 1 user, load average: 34.75, 37.21, 21.36
Tasks: 3927 total, 6 running, 3921 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.8% us, 3.8% sy, 0.0% ni, 92.5% id, 0.6% wa, 0.3% hi, 0.0% si
Mem: 1034648k total, 1013128k used, 21520k free, 40324k buffers
Swap: 979956k total, 716424k used, 263532k free, 164316k cached
Impressionant! Quasi 4000 processos, la cpu tranquil·la i el system load pels núvols... Després d'un ps aux normal he tret aquest:


markus@myth:~$ ps aux | grep exim4 | wc -l
3857

Putu exim! A la bassa…


markus@myth:~$ sudo killall -9 exim4
Password:
markus@myth:~$ ps aux | grep exim4 | wc -l
1

Ara que està tranquil mirem que pot haver passat:

markus@myth:~$ less /var/log/exim4/mainlog

2007-03-25 07:36:39 1HVLPD-0005vn-9G <= <> R=1HT1rH-0006ME-0R U=Debian-exim P=local S=1527
2007-03-25 07:36:39 1HT1rH-0006ME-0R Completed
2007-03-25 07:36:39 1HVLPD-0005vn-9G ** markus@kusw3.com R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail
server after MAIL FROM:<> SIZE=2588: host gmail-smtp.l.google.com [66.249.93.109]: 530 5.5.1 Authentication Required a1sm6599873ugf
2007-03-25 07:36:39 1HVLPD-0005vn-9G Frozen (delivery error message)
2007-03-25 07:37:02 1HVLPa-0005wL-5X <= markus@myth U=markus P=local S=742
2007-03-25 07:37:02 1HVLPa-0005wL-5X ** markus@kusw3.com R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail
server after MAIL FROM: SIZE=1780: host gmail-smtp.l.google.com [66.249.93.109]: 530 5.5.1 Authentication Required k28
sm6593670ugd
2007-03-25 07:37:03 1HVLPa-0005wQ-Vp <= <> R=1HVLPa-0005wL-5X U=Debian-exim P=local S=1689
2007-03-25 07:37:03 1HVLPa-0005wL-5X Completed
uH?? Que fa la cosa aquesta enviat a través de google al compte markus@kusw3.com. Sembla que l’error està per aquí… Ara tot torna a la normalitat.


markus@myth:~$ top

top - 14:01:55 up 8 days, 1:06, 1 user, load average: 4.37, 29.75, 23.19
Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3% us, 0.0% sy, 0.0% ni, 98.7% id, 0.7% wa, 0.3% hi, 0.0% si
Mem: 1034648k total, 329540k used, 705108k free, 41272k buffers
Swap: 979956k total, 54128k used, 925828k free, 167340k cached
markus@myth:~$ top

top - 14:19:09 up 8 days, 1:23, 1 user, load average: 0.21, 1.10, 7.71
Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 99.3% id, 0.3% wa, 0.3% hi, 0.0% si
Mem: 1034648k total, 343752k used, 690896k free, 44908k buffers
Swap: 979956k total, 54128k used, 925828k free, 178460k cached
markus@myth:~$ sudo /etc/init.d/apache2 start
Password:
* Starting apache 2.0 web server… [ ok ]

Reboot de l’apache que havia quedat KO, per això no servia les meves webs.

Ara toca mirar la configuració del exim haviam que collons està fotent… Ja ho explicaré…

Mar 17

Installing Banshee in Ubuntu Edgy

Today I was willing to listen to my music, but I have it on my iPod, the last.fm player didn’t worked and Rythmbox just sucks from my point of view. I found something new that seems its rocking the music players. The Banshee project Music Management and Playback for Gnome.

Right now I’m installing it I haven’t test it but they sell it well in their site. iPod - mp3 player integration, smart lists, last.fm plugin, internet radio and of course listen to your own music, sounds quite good.

For the installation I have follow the instructions from their Ubuntu Installation Guide just using deb http://directhex.mfgames.com/ ./ as the repository because the one they say have moved to it.

I’ll tell my experience with it later.