Solved

Monitor internet access outtage

Posted on 2011-03-15
7
365 Views
Last Modified: 2012-08-14
I have a computer which connects to the internet via a LAN ADSL-modem-router.
Since a change of ISP, I have reasons to suspect that outtages occur more frequently than before. However, some of these outtages could be micro in duration.
Could the experts suggest a software utility that I can install on this computer to monitor and log these outtages for say 2-3 days 24/7?
Thanks.
0
Comment
Question by:garychu
  • 3
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:paulqna
ID: 35142031
What type of adsl modem do you have? Most likely you can enable some sort of logging in that modem from which you can extract the info you want.

Or you can use a ping loop (unix/linux/mac/bsd systems):

while true; do echo "$(date): $(ping -c 1 8.8.8.8|grep from)" >>~/internet_monitor.log; done
0
 

Author Comment

by:garychu
ID: 35142424
Thanks, paulqna.
The adsl modem used does not provide traffic or status logging.
The OS of the computer is Windows XP Pro SP3.
How do I do a ping loop with a Windows OS?
0
 
LVL 5

Expert Comment

by:paulqna
ID: 35142628
With the sh.exe from this site. But then make sure the directory where you extract these files is included in your system's PATH variable.

On windows the -c flag from ping is -n I think.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 35142843
Ping -t is looping until you stop it
0
 

Author Comment

by:garychu
ID: 35144590
Link to sh.exe is not good.
Meanwhile;
1) Should I not have to ping to at least 2 separate remote hosts immediately one after another?
Failure to reply from just one could indicate a problem at the destination host end. Not conclusive proof of outtage.
2)Is it possible to only selectively log failures rather than everything?
0
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 200 total points
ID: 35144694
Pinging a dns server like 8.8.8.8 or 4.2.2.2 is probably a safe test. They don't really go down.
0
 
LVL 5

Accepted Solution

by:
paulqna earned 300 total points
ID: 35144914
this one does work (slow but works)...

you would need some script that only logs something if the result from this is "1 1":
ping -c 1 -n 8.8.8.8 |gawk '/transmitted/{print $1" "$4}'
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EIGRP  router failure 14 41
EIGRP Multicast vs Unicast 7 57
2 routers, one cable modem 10 86
Do you think below two ipv6 routes are the same thing? 4 30
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now