Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctyar/pingct
A simple ping like tool to check the network connectivity.
https://github.com/ctyar/pingct
dns ip network ping proxy socks5
Last synced: 19 days ago
JSON representation
A simple ping like tool to check the network connectivity.
- Host: GitHub
- URL: https://github.com/ctyar/pingct
- Owner: ctyar
- License: mit
- Created: 2019-02-08T16:10:24.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T10:30:16.000Z (4 months ago)
- Last Synced: 2024-09-11T15:23:33.353Z (4 months ago)
- Topics: dns, ip, network, ping, proxy, socks5
- Language: C#
- Homepage:
- Size: 230 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pingct
[![Build Status](https://dev.azure.com/ctyar/pingct/_apis/build/status/ctyar.pingct?branchName=main)](https://dev.azure.com/ctyar/pingct/_build/latest?definitionId=5&branchName=main)
[![pingct](https://img.shields.io/nuget/v/pingct.svg)](https://www.nuget.org/packages/pingct/)A simple Ping like tool to check the network connection issues. `pingct` is designed to constantly check the network connectivity and in case of any issues run a set of tests to facilitate troubleshooting.
## Get started
[Install](https://get.dot.net) the [required](global.json) .NET SDK.
Run this command:
```
$ dotnet tool install --global pingct
```And run the tool with:
```
$ pingct
```## Usage
```
pingct [options] [command]Options:
--version Show version information
-?, -h, --help Show help and usage informationCommands:
config Prints the path to the config file
```#### Config file
```json
{
"Ping": "4.2.2.4",
"Delay": 1500,
"MaxPingSuccessTime": 120,
"MaxPingWarningTime": 170,
"Tests": [
{
"Type": "ping",
"Host": "192.168.1.1"
},
{
"Type": "ping",
"Host": "bt.com"
},
{
"Type": "dns",
"Host": "facebook.com"
},
{
"Type": "get",
"Host": "https://twitter.com"
}
],
"OnConnected": "",
"OnConnectedArgs": "",
"OnDisconnected": "",
"OnDisconnectedArgs": ""
}
```#### Supported test types:
1. `ping` Ping
1. `dns` DNS lookup
1. `get` HTTP GET request#### Sample output:
![image](https://user-images.githubusercontent.com/1432648/151763302-146eb6f9-999d-4ea4-a528-875ae55b0be9.png)## Pre-release builds
Get the package from [here](https://github.com/ctyar/pingct/packages/48026).## Build
[Install](https://get.dot.net) the [required](global.json) .NET SDK.Run:
```
$ dotnet build
```