Re: [SLE] emailing myself when a ping command fails via crontab????
From: Kastus (NOSPAM_at_tprfct.net)
Date: 10/14/03
- Previous message: Donn aka n5xwb Washburn: "Re: [SLE] looking a modem guru"
- In reply to: Damian Buckley: "[SLE] emailing myself when a ping command fails via crontab????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 13 Oct 2003 17:57:46 -0700 To: suse-linux-e@suse.com
On Mon, Oct 13, 2003 at 03:54:51PM +0100, Damian Buckley wrote:
> Hi,
> I have a command set up in crontab as goes:
>
> 0,20,40 9-16 * * 1-5 ping -c2 111.111.111.111 >>
> file.log
>
> basically this pings one of our external network servers every 20 mins
> between 9am and 4pm.... it then outputs the ping to a text file for me
> to observe and ensure connectivity is in place, however I tend to forget
> about this and now want to set a command up to email me via sendmail
> when the ping command fails....
>
> Is this possible? and can anybody show me how?
Have a look at mon which is included in SuSE Pro. It does exactly
what you want and even more.
The most recent version (mon-0.99.33-34) can be found here:
ftp://ftp.kernel.org/pub/software/admin/mon/devel/
Regards, -Kastus
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Donn aka n5xwb Washburn: "Re: [SLE] looking a modem guru"
- In reply to: Damian Buckley: "[SLE] emailing myself when a ping command fails via crontab????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|