• Stars
    star
    128
  • Rank 281,140 (Top 6 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 6 years ago
  • Updated 4 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

tcpping script for smokeping that runs with newer linux traceroute binaries

tcpping v2.x

Warning: With version 2.4, some defaults have changed:

  • Default timeout is now 1 second instead of 3
  • Interval between pings is now automatically calculated to fit timeout

These changes have been made to make Smokeping integration easier.

fork of elder tcpping v1.8 script running with newer traceroute binary

This script is a fork of Richard Van den Berg's tcpping script, original version found here, supporting newer traceroute binaries. Usage is the same and should work out of the box for smokeping.

It comes with various improvements like language agonstic functionality, better error detection, debug, and removed tcptraceroute dependancy, sub second pings and statistics.

So far, tests have been done with:

  • CentOS 7: v2.0-2.3 tested (with traceroute 2.0.22 and bash 4.2.46(2)-release)
  • CentOS 8: v2.3 tested (with traceroute 2.1.0 and bash 4.4.19(1)-release)
  • FreeBSD 11.2: v2.0-2.3 tested (with traceroute 1.4a12 and tcsh 6.20.00) Also, smokeping 2.7.2 and 2.7.3 have been tested.

Installation

sudo wget -O /usr/bin/tcpping https://raw.githubusercontent.com/deajan/tcpping/master/tcpping ; sudo chmod 755 /usr/bin/tcpping

Usage

Example command smokeping would use

tcpping -C -x 5 myhost 80

Example command for sub second tcp ping analysis on Linux

tcpping -x 10 -w .1 -o myhost 443

Keep in mind that the tcp / udp probe checks for a SYN flag, which does not mean that a service is listening on the target machine port.

Root privileges

By default, traceroute needs root privileges. You may launch script with sudo or with '-Z' in order to ask for root privileges during execution. By doing so, you may edit your sudoers file by allowing user 'bob' to run traceroute as root without password

bob ALL=(ALL) NOPASSWD: /usr/bin/traceroute

Licence and improvements

Altough there are probably better tools out there (hping, nmap, etc), this is still a quick and handy tool used by smokeping, so every improvement / fork / pull request is more than welcome.

Originally, Richard linked to the GPLv2 licence. Having talked with him, he did allow to update to GPLv3, so this script is GPLv3.

More Repositories

1

osync

A robust two way (bidirectional) file sync script based on rsync with fault tolerance, POSIX ACL support, time control and near realtime sync
Shell
928
star
2

backup-bench

Quick and dirty backup tool benchmark with reproducible results
Shell
112
star
3

pmOCR

A wrapper for tesseract / abbyyOCR11 ocr4linux finereader cli that can perform batch operations or monitor a directory and launch an OCR conversion on file activity
Shell
63
star
4

smartmontools-win

smartmontools for windows package providing automated / mass installation and email alert support out of the box for hard drive SMART functionality. Scriptable for unattended or GUI end user install.
Python
51
star
5

pfSense-cp-auth-onestep

pfSense Captive portal self registration in one single step
JavaScript
25
star
6

traceroute_history

Keep traceroute histroy, make diffs. Use as standalone / smokeping companion
JavaScript
23
star
7

linuxscripts

Collection of useful scripts like mailing list cleanup, dd image auto splitter, hard disk bad sector repair script...
Shell
22
star
8

obackup

File & SQL backup script for local / remote-push / remote-pull backups. Has time control, fault tolerance, email alerts and encryption support. Also can divide subdirectories in timed sub tasks.
Shell
10
star
9

zsnap

Snapshot management script for ZFS on linux, samba vfs object friendly naming (previous versions under Windows). Keep a given number of snapshots, create new ones as scheduled cron task, and have email alerts on errors.
Shell
5
star
10

windows_scripts

Collection of small yet useful Windows scripts
Batchfile
4
star
11

adbg

anti debugging for mingw compiled programs that run under windows
C
3
star
12

osync2

A robust multimaster file sync tool based on python
Python
1
star
13

smartd_pyngui

Portable GUI for smartd from smartmontools project
Python
1
star
14

imfTool

QaD JSON compatible inventory tool
Shell
1
star
15

idem_twitter

Boilerplate program for l'idem
Python
1
star
16

ofunctions

A collection of useful bash functions
Shell
1
star