Re: [SLE] emailing myself when a ping command fails via crontab????

From: Kastus (NOSPAM_at_tprfct.net)
Date: 10/14/03

  • Next message: Donn aka n5xwb Washburn: "[SLE] Say Help! - DVD and xine"
    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
    

  • Next message: Donn aka n5xwb Washburn: "[SLE] Say Help! - DVD and xine"

    Relevant Pages

    • RE: NMapWin v1.3.1
      ... -P0 - in case host in not responding to pings ... This info can all be found just by running the nmap command. ...
      (Security-Basics)
    • Re: howto execute only one time?
      ... On Thu, 15 Jan 2004 at 08:49 GMT, fengming wrote: ... > Does any one know how can I execute such commands for only one time? ... FreeBSD and NetBSD) have a -c option to set the number of pings ... to do something similar with another command, ...
      (comp.unix.shell)
    • Re: dns update failing from one workstation... 2003 domain..
      ... markm75 typed: ... bad pings to the wrong ip address.. ... the user run the /registerdns command again and all is well again.. ... Ace ...
      (microsoft.public.windows.server.dns)
    • Re: Running DBI, ODBC in the crontab
      ... Run the following lines in both the command line and crontab: ... Any of the paths that are missing in cron ... This communication is issued by UBS AG or an affiliate by the ...
      (perl.dbi.users)
    • Re: GPG in crontab causes blank messages
      ... When I run my crontab command manually in terminal, ... But since the output of the script contains a big list of files, ... If I remove the GPG portion of the command, ...
      (comp.sys.mac.apps)