Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an intranet system (no internet) and for verification I want an easy way to ping a few dozen hosts. I can run this on Windows 2008 Server or on Linux.

I want to get a simple yes/no report of if a bunch of hosts are up.

share|improve this question
add comment

3 Answers

ActiveXperts provides ICMP Ping and HTTP(S) page monitoring as part of their free version. You can setup several different notifications for failures and successes as well.

http://www.activexperts.com/activmonitor/freeware/

share|improve this answer
add comment
up vote 0 down vote accepted

Found a bash script:

HOSTS="cyberciti.biz theos.in router"

# no ping request
COUNT=1

# email report when
SUBJECT="Ping failed"
EMAILID="me@mydomain.com"
for myHost in $HOSTS
do
  count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # 100% failed
    echo "Host : $myHost is down (ping failed) at $(date)" | mail -s "$SUBJECT" $EMAILID
  fi
done
share|improve this answer
add comment

It depends.

Which interface (GUI, cli?) do you want to use? Who and how will use it? and why do you do such pings? It is, if you ping for pinging also ping (hping or nmap) maybe a litlle scripted could do the job (but a machine replying to ping not necessarily is alive for the service that must give), instead if you'd like to know if a host is doing its job, then it's better to check for the services that it is supposed to give and to do that there are monitoring tools like monit or bigbrother (nowaday maybe also big sister) under Linux or you can use simpler system tools scripted to check the different services of the different hosts. I don't know under Windows.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.