Comments (8)
@famewolf it designed to short circuit on the first successful ping - it will only perform up to the --ping-count
number of pings if they all fail. In other words, it will only reboot if it makes --ping-count
attempts and they all fail.
from tmo-monitor.
This worked for me. Note I'm using my fork to test, but it did the right thing (pinged Microsoft 3 times.)
PS C:\src\tmo-monitor> python.exe .\tmo-monitor.py -H "microsoft.com" --ping-count 3 --ping-interval 1
Camping on n41.
Pinging microsoft.com [104.215.148.63] with 32 bytes of data:
Request timed out.
Ping statistics for 104.215.148.63:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Pinging microsoft.com [104.215.148.63] with 32 bytes of data:
Request timed out.
Ping statistics for 104.215.148.63:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Pinging microsoft.com [104.215.148.63] with 32 bytes of data:
Request timed out.
Ping statistics for 104.215.148.63:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Could not ping microsoft.com.
Reboot requested.
Rebooting.
from tmo-monitor.
from tmo-monitor.
The output of the ping command itself is slightly confusing because it is not passing an argument to the ping command to specify the number of pings but rather performing separate calls to perform a single ping
at a time.
I am considering making a feature to require a certain number or percent of failures or consecutive failures, which would be harder to deal with in a cross-platform way without doing single pings.
from tmo-monitor.
using microsoft DID get me 3 but all 3 failed and I have no idea why as I'm not blocking it...this made the gateway reboot.
I think microsoft.com blocks ICMP requests to avoid DDOS. Google still allows pings to get through because so many people use it as a ping target. If you just trying pinging microsoft.com from a terminal it'll probably time out as well.
from tmo-monitor.
@famewolf, is this issue resolved?
from tmo-monitor.
from tmo-monitor.
@famewolf you don't actually need to specify all those flags to increase ping count - you can get by with just using --ping-count 3
or whatever you'd like - the other ping-related settings will inherit defaults. As mentioned above, the feature will only perform repeated pings if the first ping(s) fail(s)
Thanks for the great feature idea and I hope this helps - going to close this issue!
from tmo-monitor.
Related Issues (20)
- Implement support for multiple hashing iterations in authenticated Nokia web application endpoints
- not seeing .env in 2.0.0beta 4 HOT 7
- No module named 'tailer' HOT 3
- A more detailed installation procedure? HOT 2
- Arcadyan gateway doesn't always provide all signal information HOT 1
- Unit Tests? HOT 2
- Reboot functionality broken after Nokia firmware update to 1.2104.00.0286 HOT 1
- Arcaydyan enBID coming up wrong HOT 6
- Python 3.x compatibility
- Format uptime output to Day:Hours:Minute:seconds, similar to the GUI
- pip3 install . HOT 2
- Could not post reboot request HOT 4
- Crashes Immediately on macOS HOT 5
- Script fails if not connected to 5G band HOT 2
- Provide an option to explicitly force IPv4 ping HOT 1
- Use technique other than ping to assess connection status HOT 7
- Remember Beyond Novice? HOT 4
- Could not query site info on Arcaydian with 1.00.18 HOT 2
- ping6 output on FreeBSD 12 is slightly different that base.py expects
- [Enhancement] Add 4G/5G signal stats (RSRP, SNR, etc) to collection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmo-monitor.