[ncolug] Re: Remote network monitoring

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?

Ken



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


http://packages.ubuntu.com/lucid/gnokii-smsd
http://wiki.gnokii.org/index.php/User's_Guide

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

http://www.commandlinefu.com/commands/view/3345/send-a-signed-and-encrypted-email-from-the-command-line


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?



Thanks,

Ken




      




      

Other related posts: