This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Best way to detect Internet outage?

One of my customers has a business class cable Internet connection with Comcast. Over the past few weeks we started having outages with them and they're still monitoring things on their end. I'm trying to figure out if there's some way I can determine when the line is going down and for how long by looking at the logs on the Astaro. The only thing we know at this point is that it's something outside the building, and not related to the equipment inside the building. So I figure the more information I can provide the better. As of right now I'm only notified when the phones drop, which isn't the most accurate.

We're currently on 8.308. I found an option called Uplink Monitoring, but I have no idea how it works, since there's really no information in the help menu. It doesn't say what "automatic monitoring" checks for, nor how often it pings an address...and if that's configurable. Since it's an issue with the outside line, the interface itself is not going down and it's still able to ping the Comcast gateway...so we really need to be pinging an outside IP address.

Another idea I had was checking the VPN logs since this particular site is the endpoint for 2 IPSec VPN tunnels. I figured if I check the log I can see when the tunnel is going down and when it comes back up, unfortunately I don't look through these logs often and it's hard for me to tell what's normal communication. Is there a specific line I should look for where I can see that the tunnel dropped and/or where it's re-establishing communication after a link failure?

Thanks, guys.


This thread was automatically locked due to age.
  • OK, here's a trick...

    Search the Configuration daemon log file for the last 30 days for objname="External" or whatever is the name of the interface connected to Comcast.  The result will be pairs of lines that show the times the line went down and when it came back up.

    Cheers - Bob
  • I don't think this search is working as intended for me. I checked on days that I know there was an outage and there are no entries. I only found this entry on one particular day, but it was restarted when I installed the 8.308 up2date. 

    Just to reiterate, the Astaro interface wouldn't be going down. It's still connected to the Comcast gateway, which I would be able to ping...but the Comcast gateway would be down. So I don't believe the Astaro should be showing the entry in the Configuration Daemon logfile as you suggested.

    I'm guessing I need to be using Uplink Monitoring in some fashion. I assume I could just find an IP address of a router 1 or 2 hops in and ping it, but the documentation doesn't state how often it pings the address. For example, if the line only goes down for 30-60 seconds, but the Uplink Monitor is only checking every 5 minutes...that defeats the purpose.

    Any other suggestions?

    Thanks for your help either way.
  • I don't think Uplink Monitoring does what you want.  What subscriptions are active on this installation?

    Cheers - Bob
  • Everything except for Web Application Security.
  • Hi, set Uplink Monitoring to ping google or some other remote IP.

    Uplink Monitoring seems to check at least every minute.

    Barry
  • I'd also suggest checking out SmokePing if you have a server you can run it on; it makes nice graphs of latency and packetloss.
    It can do simple alerting too (assuming the alerts are able to go somewhere; kind of hard if your internet connection is down [:P] )

    Barry
  • I'll give Uplink Monitoring a shot. But what does it do when it triggers from an outage? Will it send out a notification to the default email address? I don't see any notification options. Is there something specific I should look for in the log, and which log file would that info be in? I don't see one dedicated to Uplink Monitoring.

    Thanks.
  • After looking at Uplink Monitoring and taking into account what BAlfson suggested regarding the Configuration Daemon log, I decided to put the following configuration into place:
    1) I created a dummy Additional Address called "Comcast" using an unused static IP address in our block and enabled the address
    2) I enabled Uplink Monitoring
    3) On the Advanced tab, I disabled "Automatic Monitoring" and added a DNS host of "www.google.com" in the Monitoring Hosts section
    4) Under the Actions tab I created a new Action with type "Additional Address" that will disable the Comcast additional address if the Uplink goes down

    With this in place I just need to go under the logging section and do a search of all log files for "Comcast". So this should be a quick and easy way of detecting when there is an outage.

    If anyone sees any flaw in my configuration here, maybe something I missed, just let me know. Otherwise I'll keep you posted on whether this does the trick.

    Thanks again, guys.
  • Hi, it will email the default notification address.

    I suspect that there will be information logged in at least one of the logs when there is an outage; your configuration seems overkill.

    Barry
  • This did work. I received an email alert when the uplink went down and when it came back up. There were also entries in the Configuration Daemon log.

    Thanks!