+ Post New Thread
Results 1 to 9 of 9
Group Project Thread, Internet connection monitor using Raspberry Pi in Coding and Web Development; I was thinking of creating a package or something that ran on a Raspberry Pi that monitored your internet connection. ...
  1. #1

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,450
    Thank Post
    369
    Thanked 650 Times in 531 Posts
    Rep Power
    160

    Internet connection monitor using Raspberry Pi

    I was thinking of creating a package or something that ran on a Raspberry Pi that monitored your internet connection. Basically you would configure to say, monitoring your public school website, Google, your router, your server(s), email then it'll give you a simple status web page that would display if the services are ok or if they are degraded (poor response time\random packet loss).

    It would be alerting, but that might be a bit difficult informing your ISP that your internet is down, if your internet down, but it could send an email for degrades and post-outages. I think the key thing would be reporting. I know from the support side, you have problems tracking down "random" issues if the customer is vague. Also it gives you a better position if you've got hard facts, ie it's not my switch, it's the LAN port on your router.

    I think it's important it's a device on the network that could be plugged in anywhere as this will give you an actual real-world status, also it needs to be on a non-live system so it can't impact it. Benefit of the Raspberry Pi is that it's fairly cheap, low power and small - so you could hide it in some office at the other end of the school.

    Good idea? Already been done?

  2. #2

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    Quote Originally Posted by matt40k View Post
    I was thinking of creating a package or something that ran on a Raspberry Pi that monitored your internet connection. Basically you would configure to say, monitoring your public school website, Google, your router, your server(s), email then it'll give you a simple status web page that would display if the services are ok or if they are degraded (poor response time\random packet loss).

    It would be alerting, but that might be a bit difficult informing your ISP that your internet is down, if your internet down, but it could send an email for degrades and post-outages. I think the key thing would be reporting. I know from the support side, you have problems tracking down "random" issues if the customer is vague. Also it gives you a better position if you've got hard facts, ie it's not my switch, it's the LAN port on your router.

    I think it's important it's a device on the network that could be plugged in anywhere as this will give you an actual real-world status, also it needs to be on a non-live system so it can't impact it. Benefit of the Raspberry Pi is that it's fairly cheap, low power and small - so you could hide it in some office at the other end of the school.

    Good idea? Already been done?

    There's various sites like montastic for monitoring web sites.

    Linux webmin has a service/server monitor built in ( you could run that on pi )


    or just bash script it with pings and mail commands.

    Rob

  3. #3

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,450
    Thank Post
    369
    Thanked 650 Times in 531 Posts
    Rep Power
    160
    Quote Originally Posted by twin--turbo View Post
    There's various sites like montastic for monitoring web sites.
    Agreed, but there have been instances where the outside world can see your website, but not your internal users. It was more to see if your actual internet connection works and if it doesn't work, at what point has it failed - internal lan, router, isp dns server, or if it's the actual website.

    Quote Originally Posted by twin--turbo View Post
    Linux webmin has a service/server monitor built in ( you could run that on pi )
    It's a bit overkill for what I wanted. Just wanted a simple traffic light system page and a nice Excel report.

    Quote Originally Posted by twin--turbo View Post
    or just bash script it with pings and mail commands.
    True, I was hoping to make it a bit more user-friendly.

  4. #4

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    Output the results of the BASH script to an auto refresh HTML page.

    Rob

  5. #5

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,578
    Thank Post
    1,473
    Thanked 1,227 Times in 835 Posts
    Rep Power
    753
    Quote Originally Posted by matt40k View Post
    It's a bit overkill for what I wanted. Just wanted a simple traffic light system page and a nice Excel report.

    ...

    True, I was hoping to make it a bit more user-friendly.
    Parse the BASH output for status info and present it in a simple traffic light format? i.e. you don't have to frighten the user with BASH output, you can simply check for problems and alter your traffic lights as you see fit - the BASH output will act as your log when it comes to diagnosis

  6. #6

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,450
    Thank Post
    369
    Thanked 650 Times in 531 Posts
    Rep Power
    160
    Sorry, was thinking user friendly as in easy to configure rather then output.

    It's most likely going to be a bash script, it's about my limit when it comes to linux!! Unless I outsource it...

  7. #7

    Join Date
    Jan 2009
    Location
    Burton On Trent
    Posts
    143
    Thank Post
    24
    Thanked 30 Times in 22 Posts
    Rep Power
    17
    How would it get the data? SNMP? or were you thinking of actually plugging it into the network and having it monitor packets flowing though it? (Store and forward). If the later, the Pi will be seriously underpowered for this job.

  8. #8

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    fping google. (good bad ugly )
    fping router ( good bad ugly )
    fping website ( good bad ugly )
    time download 4mb file from website.

    Push to html.

  9. #9

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,450
    Thank Post
    369
    Thanked 650 Times in 531 Posts
    Rep Power
    160
    Yer, like @twin--turbo, just basic ping, http responses, maybe a few others like dns. Wouldn't bother with SNMP, it'll only be good for your internal network as it'll be blocked outside of your network. If that's what you wanted you'd use nagios or something. Network traffic would be wireshark but that's pretty hardcore, I mean you don't need to sniff the network to know you've got loopback!! So that's out.

    PS: Not sure, Pi is pretty good with streams of data, it's only an issue if you want to start capturing it.

SHARE:
+ Post New Thread

Similar Threads

  1. Why use Raspberry Pi?
    By shadowx in forum How do you do....it?
    Replies: 9
    Last Post: 1st February 2013, 04:25 PM
  2. Raspberry Pi connecting to Wireless
    By Divaldo in forum Raspberry Pi, Arduino & Other SBCs
    Replies: 6
    Last Post: 5th October 2012, 09:54 AM
  3. using 2 internet connections
    By IA76 in forum Wired Networks
    Replies: 2
    Last Post: 23rd January 2012, 05:24 PM
  4. Freeware/Open Source internet traffic monitoring, what do you use?
    By Darryl_Wilcox in forum Network and Classroom Management
    Replies: 8
    Last Post: 2nd November 2011, 09:39 AM
  5. Monitor individuals internet connection
    By Lee_K_81 in forum Internet Related/Filtering/Firewall
    Replies: 7
    Last Post: 11th May 2011, 08:42 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •