Are there recommendations for trimming quotes on this list? Brian Brunner brian.t.brunner@xxxxxxxxxxxxxxx (610)796-5838 >>> wam@xxxxxxxxxx 09/23/05 08:07AM >>> Steven Vishoot wrote: >--- "William A. Mahaffey III" <wam@xxxxxxxxxx> wrote: > > > >>CentOS mailing list wrote: >> >> >> >>>Kennedy Clark wrote: >>> >>> >>> >>>>A bit off topic, but I keep looking for an answer >>>> >>>> >>to this question >> >> >>>>and coming up with nothing... so I thought I >>>> >>>> >>would go to the gurus. :-) >> >> >>>> >>>>Can anyone recommend a good package for pinging >>>> >>>> >>other devices and >> >> >>>>sending an email/alert when they go down? I'm >>>> >>>> >>aware of all kinds of >> >> >>>>more complex things with GUIs and a zillion other >>>> >>>> >>bells and whistles >> >> >>>>we aren't looking for, but we just want a simple >>>> >>>> >>tool (could be >> >> >>>>daemon or something run from cron) that runs >>>> >>>> >>every 1 - 5 minutes and >> >> >>>>alerts us when stuff disappears. Would need some >>>> >>>> >>basic logic like >> >> >>>>only sending one email/alert when something goes >>>> >>>> >>down (vs sending an >> >> >>>>email every 1-5 minutes until it comes back up). >>>> >>>> >>:-) We need to >> >> >>>>avoid a requirement for an X-windows GUI, but a >>>> >>>> >>web-GUI would >> >> >>>>probably be fine (a GUI-less command-line thing >>>> >>>> >>would probably be best). >> >> >>>Bash. Here is what I use for monitoring my website >>> >>>#!/bin/bash >>> >>>URL="http://www.911networks.com" >>>EMAIL="artsi@xxxxxxxxxx" >>> >>>lynx -dump "$URL" > /dev/null >>>if [ $? -ne 0 ]; then >>> echo "`date "+%F %T"` - $URL is down" | mail >>> >>> >>-s "$URL is down" $EMAIL >> >> >>>fi >>> >>>Watch for the wraps and make it executable [chmod >>> >>> >>7xx] >> >> >>> >>> >>This is the sort of thing I was going to suggest. >>You could go 1 better >>& have it resubmit itself periodically w/ at(1). >>Maybe get it to do some >>argument parsing so you could pass in the URL, >>EMAIL, then invoke plural >>instances for however many things you want to >>monitor .... >> >>-- >> William A. Mahaffey III >> >> >> >--------------------------------------------------------------------- > > >> Remember, ignorance is bliss, but >> willful ignorance is LIBERALISM !!!! >> >>_______________________________________________ >>CentOS mailing list >>CentOS@xxxxxxxxxx >>http://lists.centos.org/mailman/listinfo/centos >> >> >> > >My question is wouldnt this keep on sending emails all >the time ping keeps on seeing it is down. I thought >one of the requirements was once for each occurance? I >probably am reading this wrong... > >Steven > > >"On the side of the software box, in the 'System Requirements' section, it said 'Requires Windows or better'. So I installed Linux." >_______________________________________________ > > > It wouldn't have to. You would probably structure the script to E-mail if the device was down & then exit. It would re-submit itself if the device were up :-). -- William A. Mahaffey III --------------------------------------------------------------------- Remember, ignorance is bliss, but willful ignorance is LIBERALISM !!!! ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.hubbell.com - Hubbell Incorporated