1
0
Fork 0
mirror of https://github.com/pnx/pinger.git synced 2026-06-16 03:24:54 +02:00
No description
Find a file
2025-05-31 17:16:33 +02:00
.github/workflows .github/workflows/release.yml: exclude darwin 386 2025-05-30 16:49:41 +02:00
.gitignore gitignore: ignore pinger binary 2025-05-25 22:29:24 +02:00
go.mod go.mod: set minimum version to 1.20 2025-05-31 17:16:22 +02:00
go.sum go.mod: Upgrade packages. 2023-03-15 23:28:01 +01:00
LICENSE add README and LICENSE 2025-05-31 17:16:33 +02:00
main.go Version 0.0.3 2025-05-29 22:24:29 +02:00
Makefile Adding makefile 2025-05-25 22:28:47 +02:00
README.md add README and LICENSE 2025-05-31 17:16:33 +02:00

Pinger

Pinger is a lightweight, high-performance network utility written in Go. It enables users to send ICMP echo requests (pings) to specified hosts, facilitating network diagnostics and monitoring.

Features

  • Send ICMP echo requests to specified hosts.
  • Measure round-trip time (RTT) for each ping.
  • Support for both IPv4 and IPv6 addresses.
  • Configurable number of ping attempts and intervals.
  • Lightweight and efficient, suitable for scripting and automation.

Installation

Prerequisites

  • Go (version 1.20 or later) installed on your system.
  • make

Steps

  1. Clone the repository:
git clone https://github.com/pnx/pinger.git
cd pinger
  1. Build the application:
make

Usage

See ./pinger -h

Example

./pinger --udp -t 30s example.com

This command sends UDP echo requests to example.com, stopping after 30 seconds

./pinger -c 8 -i 1s example.com

This command sends 8 ICMP echo requests to example.com, with a 1-second interval between pings. NOTE: this requires root privileges

License

This project is licensed under the MIT License. See the LICENSE file for details.