Bhè prova a schedulare questo script a crontab ogni 10 minuti così raccogli delle statistiche magari in 24 ore e proviamo a capirci qualcosa ! Se proprio non se ne viene a capo allora si proverà con un sistema di monitoraggio in modo da raccogliere i log del router tramite mrtg via snmp ... ma questo è già un attimino più complesso.
Per adesso prova così:
#script_rete.sh
#!/bin/sh
ping -c 5
www.libero.it >> db_rete.txt
nslookup
www.google.it >> db_rete.txt
nslookup
www.libero.it >> db_rete.txt
ping -s 1000 -c 5
www.libero.it >> db_rete.txt
poi dai crontab -e
*/10 * * * * /bin/sh /root/script_rete.sh
Dovresti trovare qualcosa del genere nel file db_rete.txt
PING vs-fe.iol.it (195.210.91.83) 56(84) bytes of data.
64 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=1 ttl=117 time=29.5 ms
64 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=2 ttl=117 time=28.7 ms
64 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=3 ttl=117 time=29.6 ms
64 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=4 ttl=117 time=29.3 ms
64 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=5 ttl=117 time=29.2 ms
--- vs-fe.iol.it ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 28.783/29.319/29.691/0.376 ms
Server: 1.253.128.10
Address: 1.253.128.10#53
Non-authoritative answer:
www.google.it canonical name =
www.google.com.
www.google.com canonical name =
www.l.google.com.
Name:
www.l.google.comAddress: 209.85.135.99
Name:
www.l.google.comAddress: 209.85.135.104
Name:
www.l.google.comAddress: 209.85.135.147
Name:
www.l.google.comAddress: 209.85.135.103
Server: 1.253.128.10
Address: 1.253.128.10#53
Non-authoritative answer:
www.libero.it canonical name = vs-fe.iol.it.
Name: vs-fe.iol.it
Address: 195.210.91.83
PING vs-fe.iol.it (195.210.91.83) 1000(1028) bytes of data.
1008 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=1 ttl=117 time=40.5 ms
1008 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=2 ttl=117 time=38.2 ms
1008 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=3 ttl=117 time=36.9 ms
1008 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=4 ttl=117 time=39.0 ms
1008 bytes from vs-fe.iol.it (195.210.91.83): icmp_seq=5 ttl=117 time=41.1 ms
--- vs-fe.iol.it ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 36.918/39.163/41.136/1.530 ms