Software to monitor domains

Ray Parrish crp at
Mon Nov 17 07:13:38 UTC 2008

> Ray Parrish wrote:
>> Wow! That's way over blown for what I need. I just need something that 
>> pings the servers every few minutes, and pops up a notice if either of 
>> them is down. A web search found lots of Windows packages that do this, 
>> but no Linux based solutions. I even tried one of the Windows apps with 
>> Wine, but it wouldn't run.
> <>
> yielded: <>
> Start with A and work your way down to Z. I did a spot check of a few of
> them. Should be something there. If not, this isn't a particularly
> challenging problem, though I think ping isn't the answer. A given
> server could be responsive to pings but still not be able to serve web
> pages.
> I created a very simple Python script <>
> that will enable you to monitor one or more servers and if a given
> server has a problem, it will put up a KDE dialogue window notifying you
> of the nature of the problem.(*) You don't necessarily have to run KDE
> to pop up a KDE dialogue. If you want to have a GTK window pop up
> instead, I'll leave that as an exercise for you to modify the script to
> use gtkdialog instead of kdialog.
> (*) Not every problem is on the server side of course. If you have
> connectivity problems at your end, the script will dutifully report that
> your remote servers are having problems. (If I had a nickel for each of
> the times we got support calls from clients whose Internet service was
> down...) Perhaps it would make sense to add a couple of sites that are
> unlikely to be down at the same time, e.g. Google and Yahoo, to
> determine if the problem lies at your end or at the other end.

I took a look at your script, and I like it, but I've already written a 
bash script with wget that will serve the purpose for me. The one thing 
I like about yours better is that it makes a sound on server down. 
Hmmmm, how can I modify my script to make a sound as well??

Back to researching bash, I know I can make it emit a sound by using cat 
to send the sound file to output, but I'm not quite sure how to tack the 
cat onto the end of the wget line so it only fires on the error condition.

Later, Ray Parrish

-- Web index of human reviewed links.
Trouble shooting and Fixing Windows My poetry in web pages

More information about the ubuntu-users mailing list