<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Steven Vishoot wrote:
<blockquote
cite="mid20050922214558.40780.qmail@web31705.mail.mud.yahoo.com"
type="cite">
<pre wrap="">
--- "William A. Mahaffey III" <a class="moz-txt-link-rfc2396E" href="mailto:wam@HiWAAY.net"><wam@HiWAAY.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">CentOS mailing list wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Kennedy Clark wrote:
</pre>
<blockquote type="cite">
<pre wrap="">A bit off topic, but I keep looking for an answer
</pre>
</blockquote>
</blockquote>
<pre wrap="">to this question
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">and coming up with nothing... so I thought I
</pre>
</blockquote>
</blockquote>
<pre wrap="">would go to the gurus. :-)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">
Can anyone recommend a good package for pinging
</pre>
</blockquote>
</blockquote>
<pre wrap="">other devices and
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">sending an email/alert when they go down? I'm
</pre>
</blockquote>
</blockquote>
<pre wrap="">aware of all kinds of
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">more complex things with GUIs and a zillion other
</pre>
</blockquote>
</blockquote>
<pre wrap="">bells and whistles
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">we aren't looking for, but we just want a simple
</pre>
</blockquote>
</blockquote>
<pre wrap="">tool (could be
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">daemon or something run from cron) that runs
</pre>
</blockquote>
</blockquote>
<pre wrap="">every 1 - 5 minutes and
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">alerts us when stuff disappears. Would need some
</pre>
</blockquote>
</blockquote>
<pre wrap="">basic logic like
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">only sending one email/alert when something goes
</pre>
</blockquote>
</blockquote>
<pre wrap="">down (vs sending an
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">email every 1-5 minutes until it comes back up).
</pre>
</blockquote>
</blockquote>
<pre wrap="">:-) We need to
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">avoid a requirement for an X-windows GUI, but a
</pre>
</blockquote>
</blockquote>
<pre wrap="">web-GUI would
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">probably be fine (a GUI-less command-line thing
</pre>
</blockquote>
</blockquote>
<pre wrap="">would probably be best).
</pre>
<blockquote type="cite">
<pre wrap="">
Bash. Here is what I use for monitoring my website
#!/bin/bash
URL=<a class="moz-txt-link-rfc2396E" href="http://www.911networks.com">"http://www.911networks.com"</a>
EMAIL=<a class="moz-txt-link-rfc2396E" href="mailto:artsi@fartsi.com">"artsi@fartsi.com"</a>
lynx -dump "$URL" > /dev/null
if [ $? -ne 0 ]; then
echo "`date "+%F %T"` - $URL is down" | mail
</pre>
</blockquote>
<pre wrap="">-s "$URL is down" $EMAIL
</pre>
<blockquote type="cite">
<pre wrap="">fi
Watch for the wraps and make it executable [chmod
</pre>
</blockquote>
<pre wrap="">7xx]
</pre>
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->---------------------------------------------------------------------
</pre>
<blockquote type="cite">
<pre wrap=""> Remember, ignorance is bliss, but
willful ignorance is LIBERALISM !!!!
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
</pre>
</blockquote>
<pre wrap=""><!---->
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."
_______________________________________________
</pre>
</blockquote>
<br>
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 :-).<br>
<br>
<pre class="moz-signature" cols="72">--
William A. Mahaffey III
---------------------------------------------------------------------
Remember, ignorance is bliss, but
willful ignorance is LIBERALISM !!!!
</pre>
</body>
</html>