pinger

command module
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 12 Imported by: 0

README

Software License test Go Report Card Go Doc

Pinger

Pinger helps you to monitor many hosts using ICMP ECHO_REQUEST.

Installation

Download from release page.

Usage

pinger HOSTNAME_OR_IPADDR [HOSTNAME_OR_IPADDR ...]

pinger sends ICMP packets using raw socket, so requires root privileges.

  • sudo pinger ...
  • run by root
  • chown root pinger; chmod 4755 pinger and run by normal user
  • setcap cap_net_raw=ep pinger and run by normal user (Linux only)

You can write failed history to a file by redirecting stderr to a file.

$ sudo pinger example.com example.net 192.0.2.1 192.0.2.2 192.0.2.3 2> pinger.log

Two numerical numer are RTT and average of RTT (max latest 10 samples).

Push ESC or C-c to exit.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL