LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2004, 05:03 PM   #1
Wickedinterface
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Ping utility


I am looking for a program that will let me monitor multiple offices from a remote computer to let me know when there Internet connection goes down. I need a program that will monitor 48- 60 offices. Thanks in advance.
 
Old 07-12-2004, 06:15 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
fping - similar to ping, but it allows you to ping multiple addresses from the command-line, or from a script.
 
Old 07-12-2004, 06:30 PM   #3
zakaluka
Member
 
Registered: Oct 2003
Posts: 58

Rep: Reputation: 15
Couldn't find software that does ONLY that, but here is a quick and dirty solution for bash:

while (( 1 > 0 )); do
echo Starting check at `date +%c`
for i in #Space-delimited IP list here#; do
if [ `ping -n 1 $i | grep loss | cut -d' ' -f 15` != \(0% ]; then
echo " Computer $i is down"
fi
done
sleep 60 #change time interval as you see fit
done

Regards,

zakaluka.

*EDIT*: the message lost all it's space formatting, but it should work fine. Make sure to replace the #Space-delimited IP list here# with a list of your IP addresses.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Ping utility gr33ndata Programming 3 02-17-2005 06:01 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration