Are there recommendations for trimming quotes on this list?
Brian Brunner brian.t.brunner@gai-tronics.com (610)796-5838
wam@HiWAAY.net 09/23/05 08:07AM >>>
Steven Vishoot wrote:
--- "William A. Mahaffey III" wam@HiWAAY.net 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@fartsi.com"
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@centos.org 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 :-).
Am Fr, den 23.09.2005 schrieb Brian T. Brunner um 16:38:
Are there recommendations for trimming quotes on this list?
Brian Brunner
Certainly. Trim your quotes to what is necessary to understand your reply, your add to a topic / discussion. And make your additional comments inline / below the quoted part(s). That makes it much more efficient for readers. As this is a mailing list, all subscribers have got all the previous mails - and those who delete what they have read can get previous discussion from the list archive, even nicely displayed in threads, like modern mail clients should have that feature too.
Regards
Alexander
On 9/23/05, Alexander Dalloz ad+lists@uni-x.org wrote:
Am Fr, den 23.09.2005 schrieb Brian T. Brunner um 16:38:
Are there recommendations for trimming quotes on this list?
Certainly. Trim your quotes to what is necessary to understand your reply, your add to a topic / discussion. And make your additional comments inline / below the quoted part(s). That makes it much more efficient for readers.
Yes, but many folks choose never to honor these recommendations, opting instead to GIGO every byte that was posted including all the mailing list trailers and GPG trash.
-- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan