Networking Forums

Networking Forums > Computer Networking > Linux Networking > UDP watchdog

Reply
 
 
Bernhard Kuemel
Guest
Posts: n/a

 
      11-18-2004, 06:42 PM
Hi coln!

I want to be notified of problems on my server via SMS, even when
the network or power fails. So I have to watch my server
remotely. Locally I use monit and I could use it remotely, too,
with a ping, TCP or UDP check, but I'd like a more sophisticated
check with low bandwidth and memory usage and I wonder if what I
plan does already exist. I didn't find it.

Something like ...
------------------------------------------------
SMS are sent via email to (E-Mail Removed)

every 60 s check mailgw.mobilkom.at,
e.g. ping it or nmap -sS -p25 or connect to it and quit
if success 'date +%s >statusfile'
else echo alarm >statusfile

put up a UDP server which replies to every received packet
with a packet containing statusfile.

On the remote host a client polls status file every 10 s
if there is no reply (maybe due to lost packet),
burst poll 10 times with 1 s spacing until we receive a reply
if no reply SMS 'server unreachable'
if statusfile=='alarm' SMS 'SMS smtp server unreachable'
if statusfile < `date +%s` - 90` SMS `SMS smtp server watchdog dead`
---------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BBC Watchdog Broadband Survey - Results Steve Harvey Broadband 92 03-26-2007 09:27 AM
Watchdog - Broadband Survey Graham2 Broadband 6 02-28-2007 10:09 PM
Watchdog on Bulldog Broadband ?? Anorak Broadband 7 09-11-2005 11:54 AM
NETDEV WATCHDOG: eth0: transmit timed out - what does this mean? robert.spam.me.senseless@gmail.com Linux Networking 0 04-27-2005 10:57 AM
error NETDEV WATCHDOG lasterix Linux Networking 1 12-15-2003 09:41 AM



1 2 3 4 5 6 7 8 9 10 11