Simple Network Status Program.

James McDonald james
Mon May 17 11:56:22 PDT 2004


> Anyone know of a GOOD, simple network status tool?
> I do not need the network monitored, just something
> simple that will run when the "Web Server" is accessed
> to show the status of devices on the network
>

I wonder if it would be just as easy to create a simple cgi using bash....

and put the echo statements in as umm html or whatever.


hosts="host1 host2 host3"

for i in $hosts do
   ping -c2 $i
   # just guessing about return value here
   if [ "$?"="0" ] ; then
       echo "Host $i is UP"
   else
       echo "Host $i is DOWN"

   fi
done

-- 
James McDonald
Systems Engineer

Singleton NSW Australia




More information about the Linux-users mailing list