[K12OSN] Script for checking if servers are up.

Les Mikesell les at futuresource.com
Fri Oct 19 02:56:24 UTC 2007


Doug Simpson wrote:
> Thanks to all for the replies. I guess I should clarify what I am attempting to do here.
> 
> I looked at the programs and etc submitted by all of you and while they are probably good at what they do, they don't do what I am wanting to do.
> The references in the script I submitted are for reference only. IP addresses are not actual and are actually the servers are on several campuses, several LANs and some are even over a WAN.
> I can ping all of the servers I want to use this for from the one I want to run the script on.
> 
> When I complete the script and get it running properly, the |mail -s "222 is down" me at here.there will be substituted with something like:
> |festival --tts and festival has a hard time speaking IP addresses. The script will audibly announce the name of the server that is down.
> 
> This script will be run from a linux server that is on all the time, and the script will run in the background whether anyone is logged in or not.If a server goes down (ie a ping test fails) it will audibly say something like "Please check Room tewnty seven's server. It appears to be down."
> No one must be logged in and watching the script run. It just does it's thing silently until it detects a down server. If the script runs continuously in a loop, it will keep repeating the message every trip through the script until the problem is corrected.
> 
> Kinda funny, but I find the audible messages are GREAT for monitoring things. If all is well, he's quiet. If there are problems, he lets you know about it. I have done similar things with simple cron jobs, but the script will be better in this instance, I think.
> 

If you montor enough machines to make it worth the trouble to set up you 
might like OpenNMS (http://www.opennms.org).  It recently became easy to 
do the base install from their yum repository but there is still a lot 
of configuration to do.

-- 
   Les Mikesell
    les at futuresource.com




More information about the K12OSN mailing list