| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Network link monitor for linux |
Al salaam a'alaykum Viktor 21 Jan 04 22:14, Viktor Pilpenok wrote to All: VP> Is there some program for linux that can monitor a network link VP> (preferably by both checking the link status and pingin some preset VP> adresses) and run some script if the link seems down ? Call this every n minutes with cron ----- test-link begins ----- #!/bin/bash # # Checks link to gateway to see if it's still up # Note: ispgate defined in /etc/hosts # export result=`ping -c 4 -q ispgate | grep avg | wc -l` if [ $result != 1 ] then echo `date` Attempting reconnection to ISP >> /usr/adm/connection.log /usr/sbin/isp-connect # script that dials ISP fi ----- test-link ends ----- Regards, David --- Msged/LNX TE 06 (pre)* Origin: JabberWOCky. (3:640/305) SEEN-BY: 633/267 270 @PATH: 640/305 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.