[ncolug] Re: Remote network monitoring

  • From: nor thern <zboson2003@xxxxxxxxx>
  • To: ncolug@xxxxxxxxxxxxx
  • Date: Fri, 28 May 2010 09:22:08 -0700 (PDT)

while ; do ; done before the email echo will limit to one email.

example notification email sent on rsync completion from commandlinefu

$(while [ ! -z "$(pgrep rsync)" ]; do echo; done; echo "rsync done" | 
mailx user@xxxxxxxxxxx) > /dev/null &

--- On Fri, 5/28/10, Ken Allen > wrote:

From: Ken Allen 
Subject: [ncolug] Re: Remote network monitoring
To: ncolug@xxxxxxxxxxxxx
Date: Friday, May 28, 2010, 8:10 AM

Ok, I like this idea, but is there a way to take this one step further?  Can 
some type of flag be set so that we don't get tons of emails every minute until 
we clear the flag?


On Wed, May 19, 2010 at 12:51 AM, nor thern  wrote:


echo "This is a test message" | gnokii --sendsms +12345678


echo "SECRET MESSAGE" | gpg -e --armor -s | sendmail USER@xxxxxxxxxx

cron job . 
netstat every 60 seconds; cut field and grep for network down message to

be sent to gnokii and sendmail using tee.

--- On Tue, 5/18/10, Ken Allen wrote:

From: Ken Allen 

Subject: [ncolug] Remote network monitoring
To: "ncolug" <ncolug@xxxxxxxxxxxxx>
Date: Tuesday, May 18, 2010, 8:45 PM

My dad and I have a wireless network
 that recently had a major issue and the network was completely down.  I am 
looking for an open source program that can run in linux or windows to check 
the status of the network and if it is down, then send email and sms alerts.  
Does anyone know of a program that can do this for us?





Other related posts: