btanetworks.blogg.se

Internet uptime monitor raspberry
Internet uptime monitor raspberry











internet uptime monitor raspberry

I take it that you're looking to test just the link to your ISP, so do something like pinging the ISPs name server rather than pinging google. e network test is likely to be the easiest to implement, and a little bit of regular traffic may also help avoid time-outs if that's part of the picture of why your connection drops. # Write to standard output in verbose mode, to syslog otherwise # True if results shall be written to the standard output # three arguments: host name and state, plus optional arguments. # Number of samples after which dupe and damaged packets # 3 times before being flagged as flapping. # Number of samples in which a host is allowed to go down # Number of samples to declare a host state steady # Default number of seconds between ICMP probes # Background ping, keep only relevant information from the # * LOG_FILE (log file for debug purposes, silent otherwise) # notifications through an external routine that is given as # Runs in the background ping'ing given addresses. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # along with this program if not, write to the Free Software # You should have received a copy of the GNU General Public License # GNU General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # but WITHOUT ANY WARRANTY without even the implied warranty of # This program is distributed in the hope that it will be useful, # the Free Software Foundation either version 2 of the License, or # it under the terms of the GNU General Public License as published by # This program is free software you can redistribute it and/or modify Hoping you'll find it useful, here it goes: #!/bin/bash I remember planning to make it run with dash but there is one bashism I couldn't get rid of so far. I wrote it as an exercise while keeping the memory footprint as low as possible. Don't hesitate to ask if you have any question. You have embedded help in case you need it. You'll get flapping detection and link up/down detection for the same price -). in case you need some logging an external command needs to be given. The script uses predefined interval and signature values and is designed to run interactively or in the background - e.g. Note that you'll need a not-so-old version of ping, i.e. It just pings a host and collects statistics, which it prints on-demand to the system log.

internet uptime monitor raspberry

Here's a script I intended to use with an old, paused project of mine. If your ISP has a public web site, which is quite likely these days, use it then. Given your relatively simple requirement, yes, a simple ping will do.













Internet uptime monitor raspberry