Then there is no other way but to do the good ol' ping.. The only reason why I avoid pinging is the obvious, people who transfer a large amount of files over the network makes you ping look like an "Internet Connection Lost"... and you get false messages. If it's a router with NAT then you have no choice, if it's another linux box or something then you can do like I said and if it doesn't have a modem then pass a syslog mesage to one that does.. Better off really just doing a ping and if you can make it smart, make it do 10 pings every 15 minutes and if all of those 10 pings fail then consider the link down.. My syslog program does this and it's fails alot less... thanks, George Vieira Network Administrator Citadel Computer Systems P/L http://www.citadelcomputer.com.au -----Original Message----- From: Doug Stalker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 17 May 2000 4:09 PM To: George Vieira Cc: SLUG Subject: Re: [SLUG] Making linux page a message if the Network Connection goes down. The connection be monitored if effecivly a LAN connection, (it gets treated at eth0) that will always show in ifconfig, unlike a ppp connection. If the link fails, the system will lose all connectivity with the internet - this is what I want to trigger the paging. - Doug George Vieira wrote: > My suggestion is dependant on the system configuration. > > 1. If you have only 1 PPP connection then just `ifconfig | grep ppp0` or > similar... > 2. if you have multiple PPP connections like my setup then you can do a `ps > -ef | grep ppp-watch ifcfg-ppp3` if ppp3 is the connection to the internet > that you use... > > Sorry my last message was to say "Want the info?" not "What".. > > thanks, > George Vieira > Network Administrator > Citadel Computer Systems P/L > http://www.citadelcomputer.com.au > > -----Original Message----- > From: Doug Stalker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 17 May 2000 3:09 PM > To: SLUG > Subject: [SLUG] Making linux page a message if the Network Connection > goes down. > > I'm about to set up a system to monitor an internet connection, and I > want it to send an SMS message to me if it's access to the internet goes > down. > > The paging will be handled through vodafones modem to SMS service; it > should be easy to write a script that will do the actual paging. > > My question is what should I use for the actual monitoring? A simple > script that pings at regular intervals and pages if it fails too many > times would work, but I'm sure there are programs out there that are a > bit more comprehensive/reliable. > > - Doug > > -- > _____________________________________________________________ > Network Operations Engineer - Big Pond Advance Satellite > Ericsson Australia - Level 5, 184 The Broadway, Sydney 2000 > Ph: +61-416-085-390 Email: [EMAIL PROTECTED] > > -- > SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au > To unsubscribe send email to [EMAIL PROTECTED] with > unsubscribe in the text -- _____________________________________________________________ Network Operations Engineer - Big Pond Advance Satellite Ericsson Australia - Level 5, 184 The Broadway, Sydney 2000 Ph: +61-416-085-390 Email: [EMAIL PROTECTED] -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
